Repository: couchdb-mango Updated Branches: refs/heads/2787-modify-testcases 79ca3c114 -> 06a6b3f52
Check for text in num_string_test COUCHDB-2787 Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/06a6b3f5 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/06a6b3f5 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/06a6b3f5 Branch: refs/heads/2787-modify-testcases Commit: 06a6b3f52b43f0f49da840faea8e4f4585d187af Parents: 79ca3c1 Author: Tony Sun <tony....@cloudant.com> Authored: Thu Sep 10 23:43:57 2015 -0700 Committer: Tony Sun <tony....@cloudant.com> Committed: Thu Sep 10 23:43:57 2015 -0700 ---------------------------------------------------------------------- test/06-basic-text-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/06a6b3f5/test/06-basic-text-test.py ---------------------------------------------------------------------- diff --git a/test/06-basic-text-test.py b/test/06-basic-text-test.py index 493befc..28c495a 100644 --- a/test/06-basic-text-test.py +++ b/test/06-basic-text-test.py @@ -564,7 +564,8 @@ class NumStringTests(mango.DbPerClass): def setUpClass(klass): super(NumStringTests, klass).setUpClass() klass.db.recreate() - klass.db.create_text_index() + if mango.has_text_service(): + klass.db.create_text_index() # not available for python 2.7.x def isFinite(num):