spaCy/tests/test_pickle.py

16 lines
218 B
Python
Raw Normal View History

import pytest
2015-10-13 09:20:10 +00:00
import io
import cloudpickle
import pickle
@pytest.mark.models
def test_pickle_english(EN):
2015-10-13 09:20:10 +00:00
file_ = io.BytesIO()
cloudpickle.dump(EN, file_)
file_.seek(0)
loaded = pickle.load(file_)