mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +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
|
@pytest.mark.models
|
||||||
def test_read_bytes(nlp):
|
def test_read_bytes(nlp):
|
||||||
from spacy.tokens.doc import Doc
|
from spacy.tokens.doc import Doc
|
||||||
loc = '/tmp/test_serialize.bin'
|
loc = 'test_serialize.bin'
|
||||||
with open(loc, 'wb') as file_:
|
with open(loc, 'wb') as file_:
|
||||||
file_.write(nlp(u'This is a document.').to_bytes())
|
file_.write(nlp(u'This is a document.').to_bytes())
|
||||||
file_.write(nlp(u'This is another.').to_bytes())
|
file_.write(nlp(u'This is another.').to_bytes())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user