From 83f53499ae9349fa0ec5528d036399182854c8ec Mon Sep 17 00:00:00 2001 From: Bernie Hackett Date: Tue, 23 Dec 2014 15:37:47 -0800 Subject: [PATCH] Fix auth DeprecationWarning test. --- test/test_auth.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/test_auth.py b/test/test_auth.py index 870ad8c33..5d7679006 100644 --- a/test/test_auth.py +++ b/test/test_auth.py @@ -520,9 +520,7 @@ class TestClientAuth(unittest.TestCase): c.drop_database("pymongo_test1") c.pymongo_test.test.insert({"foo": "bar"}) - ctx = catch_warnings() try: - warnings.simplefilter("ignore", DeprecationWarning) c.pymongo_test.add_user("mike", "password") self.assertRaises(OperationFailure, c.copy_database, @@ -541,7 +539,6 @@ class TestClientAuth(unittest.TestCase): self.assertEqual("bar", c.pymongo_test1.test.find_one()["foo"]) finally: # Cleanup - ctx.exit() remove_all_users(c.pymongo_test) c.admin.remove_user("admin") c.disconnect()