mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-15 06:09:01 +03:00
16 lines
218 B
Python
16 lines
218 B
Python
import pytest
|
|
import io
|
|
import cloudpickle
|
|
import pickle
|
|
|
|
|
|
@pytest.mark.models
|
|
def test_pickle_english(EN):
|
|
file_ = io.BytesIO()
|
|
cloudpickle.dump(EN, file_)
|
|
|
|
file_.seek(0)
|
|
|
|
loaded = pickle.load(file_)
|
|
|