mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 19:08:06 +03:00
Add text_file_b fixture using BytesIO
This commit is contained in:
parent
49febd8c62
commit
4bb5b89ee4
|
@ -16,7 +16,7 @@ from ..lemmatizer import Lemmatizer
|
||||||
from ..attrs import ORTH, TAG, HEAD, DEP
|
from ..attrs import ORTH, TAG, HEAD, DEP
|
||||||
from ..util import match_best_version, get_data_path
|
from ..util import match_best_version, get_data_path
|
||||||
|
|
||||||
from io import StringIO
|
from io import StringIO, BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import os
|
import os
|
||||||
import pytest
|
import pytest
|
||||||
|
@ -79,6 +79,10 @@ def lemmatizer(path):
|
||||||
def text_file():
|
def text_file():
|
||||||
return StringIO()
|
return StringIO()
|
||||||
|
|
||||||
|
@pytest.fixture
|
||||||
|
def text_file_b():
|
||||||
|
return BytesIO()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def path():
|
def path():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user