From c1a8b468c5d8fcd759b71ac0a01cd87e706bd0a7 Mon Sep 17 00:00:00 2001 From: Stefan Wojcik Date: Sat, 3 Dec 2016 23:32:52 -0500 Subject: [PATCH] try dropping collection --- tests/queryset/queryset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/queryset/queryset.py b/tests/queryset/queryset.py index 31a7b2e1..29d21911 100644 --- a/tests/queryset/queryset.py +++ b/tests/queryset/queryset.py @@ -339,7 +339,6 @@ class QuerySetTest(unittest.TestCase): def test_update_write_concern(self): """Test that passing write_concern works""" - self.Person.drop_collection() write_concern = {"fsync": True} @@ -2201,6 +2200,8 @@ class QuerySetTest(unittest.TestCase): def test_comment(self): """Make sure adding a comment to the query works.""" + self.Person.drop_collection() + with db_ops_tracker() as q: adult = (self.Person.objects.filter(age__gte=18) .comment('looking for an adult')