Commits

Matt Chaput  committed d71c55b

Fixed u'' syntax in contributed test in test_analysis.
Fixed assert typo in test_codecs.

  • Participants
  • Parent commits d54b690

Comments (0)

Files changed (2)

File tests/test_analysis.py

     index = st.create_index(schema)
 
     with index.writer() as writer:
-        writer.add_document(path=u'/alfa/brvo/charlie/delta/')
-        writer.add_document(path=u'/home/user/file.txt')
+        writer.add_document(path=u('/alfa/brvo/charlie/delta/'))
+        writer.add_document(path=u('/home/user/file.txt'))
     assert not index.is_empty()
 
     with index.reader() as reader:

File tests/test_codecs.py

         assert (" ".join(s.field_terms("a"))
                 == "alfa bravo charlie delta echo foxtrot india")
 
-        assert reader.doc_field_length(2, "a"), 3
+        assert reader.doc_field_length(2, "a") == 3
 
         cfield = schema["c"]
         assert type(cfield), fields.NUMERIC