Skip to content

Commit 22cf7f2

Browse files
committed
PYTHON-894 - Can't use addCleanup in PyMongo 2 tests.
1 parent 2ef99ef commit 22cf7f2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/test_collection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,6 @@ def test_aggregation_cursor_alive(self):
14351435
raise SkipTest("Aggregation cursor requires MongoDB >= 2.5.1")
14361436
self.db.test.remove()
14371437
self.db.test.insert([{} for _ in range(3)])
1438-
self.addCleanup(self.db.test.remove)
14391438
cursor = self.db.test.aggregate(pipeline=[], cursor={'batchSize': 2})
14401439
n = 0
14411440
while True:

0 commit comments

Comments
 (0)