Fix autoreconnect test.

This commit is contained in:
Bernie Hackett 2014-06-08 17:20:54 -07:00
parent 3a023abf4e
commit c99fdccab3

View File

@ -295,7 +295,7 @@ class TestReplicaSetClient(TestReplicaSetClientBase, TestRequestMixin):
self.assertEqual(client.test, Database(client, "test"))
def test_auto_reconnect_exception_when_read_preference_is_secondary(self):
c = client_context.rs_client
c = MongoReplicaSetClient(pair, replicaSet=self.name)
db = c.pymongo_test
def raise_socket_error(*args, **kwargs):