We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d367089 commit f97db93Copy full SHA for f97db93
tests/document/indexes.py
@@ -886,10 +886,10 @@ class TestChildDoc(TestDoc):
886
index_info = TestDoc._get_collection().index_information()
887
for key in index_info:
888
del index_info[key]['v'] # drop the index version - we don't care about that here
889
- del index_info[key]['ns'] # drop the index namespace - we don't care about that here
+ if 'ns' in index_info[key]:
890
+ del index_info[key]['ns'] # drop the index namespace - we don't care about that here, MongoDB 3+
891
if 'dropDups' in index_info[key]:
892
del index_info[key]['dropDups'] # drop the index dropDups - it is deprecated in MongoDB 3+
- print index_info
893
894
self.assertEqual(index_info, {
895
'txt_1': {
0 commit comments