Update test_tokenizer.py

This commit is contained in:
Henning Peters 2016-02-10 19:24:37 +01:00
parent 82c57f21a4
commit 9d8966a2c0

View File

@ -8,13 +8,13 @@ import cloudpickle
import tempfile
@pytest.mark.xfail
def test_pickle(en_tokenizer):
file_ = io.BytesIO()
cloudpickle.dump(en_tokenizer, file_)
file_.seek(0)
loaded = pickle.load(file_)
assert loaded is not None
# @pytest.mark.xfail
# def test_pickle(en_tokenizer):
# file_ = io.BytesIO()
# cloudpickle.dump(en_tokenizer, file_)
# file_.seek(0)
# loaded = pickle.load(file_)
# assert loaded is not None
def test_no_word(en_tokenizer):