PYTHON-894 - Can't use addCleanup in PyMongo 2 tests.

This commit is contained in:
A. Jesse Jiryu Davis 2015-04-17 17:36:01 -04:00
parent f18b3644c2
commit 2ef99ef692

View File

@ -1168,7 +1168,6 @@ self.assertFalse(c2.alive)
def test_alive(self):
self.db.test.remove()
self.db.test.insert([{} for _ in range(3)])
self.addCleanup(self.db.test.remove)
cursor = self.db.test.find().batch_size(2)
n = 0
while True: