From 4f3efb8eaf2a0086805a73bec53daa5c739162c4 Mon Sep 17 00:00:00 2001 From: Henning Peters Date: Wed, 16 Dec 2015 19:56:40 +0100 Subject: [PATCH] avoid writing to /tmp (not cross-platform compatible) --- spacy/tests/website/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/website/test_api.py b/spacy/tests/website/test_api.py index 6eb1d1a03..39eb38dd6 100644 --- a/spacy/tests/website/test_api.py +++ b/spacy/tests/website/test_api.py @@ -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())