mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
avoid writing to /tmp (not cross-platform compatible)
This commit is contained in:
parent
4ada39f472
commit
4f3efb8eaf
|
@ -75,7 +75,7 @@ def test_count_by(nlp):
|
|||
@pytest.mark.models
|
||||
def test_read_bytes(nlp):
|
||||
from spacy.tokens.doc import Doc
|
||||
loc = '/tmp/test_serialize.bin'
|
||||
loc = 'test_serialize.bin'
|
||||
with open(loc, 'wb') as file_:
|
||||
file_.write(nlp(u'This is a document.').to_bytes())
|
||||
file_.write(nlp(u'This is another.').to_bytes())
|
||||
|
|
Loading…
Reference in New Issue
Block a user