From 6c6876296010d3cd62e954fdb333892b93e1dd74 Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Wed, 18 Jun 2014 20:34:45 -0400 Subject: [PATCH] Use modern 'distinct' syntax in tests. The old syntax is now an error: https://jira.mongodb.org/browse/SERVER-12642 --- test/test_read_preferences.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_read_preferences.py b/test/test_read_preferences.py index 8b61a0069..04d406b62 100644 --- a/test/test_read_preferences.py +++ b/test/test_read_preferences.py @@ -309,11 +309,11 @@ class TestCommandAndReadPreference(TestReplicaSetClientBase): # Distinct self._test_fn(True, lambda: self.c.pymongo_test.command( - 'distinct', 'test', key={'a': 1})) + 'distinct', 'test', key='a')) self._test_fn(True, lambda: self.c.pymongo_test.command( - 'distinct', 'test', key={'a': 1}, query={'a': 1})) + 'distinct', 'test', key='a', query={'a': 1})) self._test_fn(True, lambda: self.c.pymongo_test.command(SON([ - ('distinct', 'test'), ('key', {'a': 1}), ('query', {'a': 1})]))) + ('distinct', 'test'), ('key', 'a'), ('query', {'a': 1})]))) # Geo stuff. Make sure a 2d index is created and replicated self.c.pymongo_test.system.indexes.insert({