Commits

Matt Chaput committed 1c4d50c

Fix for Python 3.

  • Participants
  • Parent commits a9d532b

Comments (0)

Files changed (1)

File tests/test_searching.py

 import pytest
 
 from whoosh import analysis, fields, index, qparser, query, searching, scoring
-from whoosh.compat import u, text_type
+from whoosh.compat import b, u, text_type
 from whoosh.compat import xrange, permutations, izip_longest
 from whoosh.filedb.filestore import RamStorage
 
         assert len(r) == 2
         assert r.groups("organism") == {"mus": [1, 0]}
         assert r.has_matched_terms()
-        assert r.matched_terms() == set([('content', 'ipfstd1')])
+        assert r.matched_terms() == set([('content', b('ipfstd1'))])