mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-01 10:23:07 +03:00
Mark flaky spancat test so it doesn't fail the build (#10075)
* Mark flaky spancat test so it doesn't fail the build * Skip, don't run and ignore
This commit is contained in:
parent
39f1b13e77
commit
c28e33637b
|
@ -79,7 +79,8 @@ def test_explicit_labels():
|
||||||
nlp.initialize()
|
nlp.initialize()
|
||||||
assert spancat.labels == ("PERSON", "LOC")
|
assert spancat.labels == ("PERSON", "LOC")
|
||||||
|
|
||||||
|
#TODO figure out why this is flaky
|
||||||
|
@pytest.mark.skip(reason="Test is unreliable for unknown reason")
|
||||||
def test_doc_gc():
|
def test_doc_gc():
|
||||||
# If the Doc object is garbage collected, the spans won't be functional afterwards
|
# If the Doc object is garbage collected, the spans won't be functional afterwards
|
||||||
nlp = Language()
|
nlp = Language()
|
||||||
|
@ -97,6 +98,7 @@ def test_doc_gc():
|
||||||
assert isinstance(spangroups, SpanGroups)
|
assert isinstance(spangroups, SpanGroups)
|
||||||
for key, spangroup in spangroups.items():
|
for key, spangroup in spangroups.items():
|
||||||
assert isinstance(spangroup, SpanGroup)
|
assert isinstance(spangroup, SpanGroup)
|
||||||
|
# XXX This fails with length 0 sometimes
|
||||||
assert len(spangroup) > 0
|
assert len(spangroup) > 0
|
||||||
with pytest.raises(RuntimeError):
|
with pytest.raises(RuntimeError):
|
||||||
span = spangroup[0]
|
span = spangroup[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user