dont drop any system collections
This commit is contained in:
		| @@ -23,7 +23,7 @@ class MongoTestCase(TestCase): | |||||||
|  |  | ||||||
|     def dropCollections(self): |     def dropCollections(self): | ||||||
|         for collection in self.db.collection_names(): |         for collection in self.db.collection_names(): | ||||||
|             if collection == 'system.indexes': |             if collection.startswith('system.'): | ||||||
|                 continue |                 continue | ||||||
|             self.db.drop_collection(collection) |             self.db.drop_collection(collection) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user