Commits

Matt Chaput  committed 2efd000

Fixed str/byte issue on Python 3.x.

  • Participants
  • Parent commits e4f1acf

Comments (0)

Files changed (1)

File tests/test_spelling.py

 import gzip
 
 from whoosh import analysis, fields, fst, highlight, spelling
-from whoosh.compat import u, permutations
+from whoosh.compat import b, u, permutations
 from whoosh.filedb.filestore import RamStorage
 from whoosh.qparser import QueryParser
 from whoosh.util.testing import TempIndex
         r = s.reader()
         assert r.has_word_graph("content")
         gr = r.word_graph("content")
-        assert list(gr.flatten()) == ["cell", "cells"]
+        assert list(gr.flatten()) == [b("cell"), b("cells")]
 
         c = s.corrector("content")
         # Note that corrector won't suggest the word you submit even though it's