mirror of https://github.com/explosion/spaCy.git
* Set test file mode to w+t
This commit is contained in:
parent
0fe98f358b
commit
1c0356e4c2
|
@ -96,7 +96,7 @@ def test_pickle_string_store(sstore):
|
||||||
|
|
||||||
def test_dump_load(sstore):
|
def test_dump_load(sstore):
|
||||||
id_ = sstore[u'qqqqq']
|
id_ = sstore[u'qqqqq']
|
||||||
with tempfile.TemporaryFile('wt') as file_:
|
with tempfile.TemporaryFile('w+t') as file_:
|
||||||
sstore.dump(file_)
|
sstore.dump(file_)
|
||||||
file_.seek(0)
|
file_.seek(0)
|
||||||
new_store = StringStore()
|
new_store = StringStore()
|
||||||
|
|
Loading…
Reference in New Issue