Source

whoosh / tests / test_parsing.py

Diff from to

tests/test_parsing.py

 
 def test_unicode_num():
     schema = fields.Schema(num=fields.NUMERIC)
-    parser = default.QueryParser(u"num", schema=schema)
-    q = parser.parse(u"num:1")
+    parser = default.QueryParser(u("num"), schema=schema)
+    q = parser.parse(u("num:1"))
 
     _ = text_type(q)
 
 def test_phrase_boost():
     qp = default.QueryParser("f", None)
     q = qp.parse(u('Dahmen ANDMAYBE "Besov Spaces"^9'))
-    print(q.__unicode__())
     assert isinstance(q, query.AndMaybe)
     assert q[0] == query.Term("f", u("Dahmen"))
     assert q[1] == query.Phrase("f", [u("Besov"), u("Spaces")], boost=9)