This is an automated email from the ASF dual-hosted git repository.

tonysun83 pushed a commit to branch fix-explicit-exists-operator
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 15e187be039e8d0f2af2e2c0d2704748ca45a092
Author: Tony Sun <[email protected]>
AuthorDate: Mon Nov 13 14:53:31 2017 -0800

    fix assertIn syntax
---
 src/mango/test/07-text-custom-field-list-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mango/test/07-text-custom-field-list-test.py 
b/src/mango/test/07-text-custom-field-list-test.py
index 6229097..9bfe075 100644
--- a/src/mango/test/07-text-custom-field-list-test.py
+++ b/src/mango/test/07-text-custom-field-list-test.py
@@ -176,7 +176,7 @@ class CustomFieldsExistsTest(mango.UserDocsTextTests):
         docs = self.db.find({"exists_field": {"$exists": True}})
         self.assertEqual(len(docs), 2)
         for d in docs:
-            self.assertIn(d["user_id"] in (7, 8))
+            self.assertIn(d["user_id"], (7, 8))
 
         docs = self.db.find({"exists_field": {"$exists": False}})
         self.assertEqual(len(docs), len(user_docs.DOCS) - 2)

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to