From 1c0356e4c282f3526a6d2160e37b244d4502bb95 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 26 Oct 2015 22:40:48 +1100 Subject: [PATCH] * Set test file mode to w+t --- spacy/tests/vocab/test_intern.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/vocab/test_intern.py b/spacy/tests/vocab/test_intern.py index f378f3c29..43a291bee 100644 --- a/spacy/tests/vocab/test_intern.py +++ b/spacy/tests/vocab/test_intern.py @@ -96,7 +96,7 @@ def test_pickle_string_store(sstore): def test_dump_load(sstore): id_ = sstore[u'qqqqq'] - with tempfile.TemporaryFile('wt') as file_: + with tempfile.TemporaryFile('w+t') as file_: sstore.dump(file_) file_.seek(0) new_store = StringStore()