spaCy/tests/test_pickle.py

16 lines
218 B
Python
Raw Normal View History

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