mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-04 09:14:12 +03:00
Update mock import to work with Python 3.13
This commit is contained in:
parent
b3c46c315e
commit
7b1e07de92
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from spacy.tokens import Doc, Span, Token
|
||||
from spacy.tokens.underscore import Underscore
|
||||
|
|
|
@ -3,7 +3,7 @@ import pickle
|
|||
import re
|
||||
|
||||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from spacy.matcher import DependencyMatcher
|
||||
from spacy.tokens import Doc, Token
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from spacy.matcher import Matcher
|
||||
from spacy.tokens import Doc, Span, Token
|
||||
|
|
|
@ -2,7 +2,7 @@ import warnings
|
|||
|
||||
import pytest
|
||||
import srsly
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from spacy.lang.en import English
|
||||
from spacy.matcher import Matcher, PhraseMatcher
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from mock import Mock
|
||||
from unittest.mock import Mock
|
||||
|
||||
from spacy.language import Language
|
||||
from spacy.pipe_analysis import get_attr_info, validate_attrs
|
||||
|
|
Loading…
Reference in New Issue
Block a user