Skip to content

Commit

Permalink
Merge pull request #901 from elasticsales/fix-test-with-profiling
Browse files Browse the repository at this point in the history
Fix the unit tests for mongodb w/ profiling enabled
  • Loading branch information
thedrow committed Mar 18, 2015
2 parents 7d1ba46 + 9ae2c73 commit ed7fc86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongoengine/django/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, methodName='runtest'):

def dropCollections(self):
for collection in self.db.collection_names():
if collection == 'system.indexes':
if collection.startswith('system.'):
continue
self.db.drop_collection(collection)

Expand Down

0 comments on commit ed7fc86

Please sign in to comment.