* Fix website/test_api.py for Python 3

This commit is contained in:
Matthew Honnibal 2015-10-09 11:08:12 +02:00
parent a510858f5a
commit caff4638c9
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ def test_read_bytes(nlp):
file_.write(nlp(u'This is a document.').to_bytes())
file_.write(nlp(u'This is another.').to_bytes())
docs = []
with open(loc) as file_:
with open(loc, 'rb') as file_:
for byte_string in Doc.read_bytes(file_):
docs.append(Doc(nlp.vocab).from_bytes(byte_string))
assert len(docs) == 2