* Fix mode on text file for Python3 in strings test

This commit is contained in:
Matthew Honnibal 2015-10-26 22:25:16 +11:00
parent 8ba9cf905e
commit 0fe98f358b

View File

@ -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('tw') as file_: with tempfile.TemporaryFile('wt') as file_:
sstore.dump(file_) sstore.dump(file_)
file_.seek(0) file_.seek(0)
new_store = StringStore() new_store = StringStore()