Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit d6798ce

Browse files
authored
update skip conditions on const-parser-test (#80)
1 parent 2754f88 commit d6798ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/pretrained_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ def test_ner(self):
315315
]
316316
assert result["tags"] == ["B-PER", "L-PER", "O", "O", "O", "O", "U-LOC", "O"]
317317

318-
@pytest.mark.skipif(spacy.__version__ < "2.1", reason="this model changed from 2.0 to 2.1")
318+
@pytest.mark.skipif(
319+
not ("2.1" <= spacy.__version__ < "2.3"),
320+
reason="this model changed before and after 2.1 and 2.2",
321+
)
319322
def test_constituency_parsing(self):
320323
predictor = pretrained.span_based_constituency_parsing_with_elmo_joshi_2018()
321324

0 commit comments

Comments
 (0)