mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +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()
|
||||
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():
|
||||
# If the Doc object is garbage collected, the spans won't be functional afterwards
|
||||
nlp = Language()
|
||||
|
@ -97,6 +98,7 @@ def test_doc_gc():
|
|||
assert isinstance(spangroups, SpanGroups)
|
||||
for key, spangroup in spangroups.items():
|
||||
assert isinstance(spangroup, SpanGroup)
|
||||
# XXX This fails with length 0 sometimes
|
||||
assert len(spangroup) > 0
|
||||
with pytest.raises(RuntimeError):
|
||||
span = spangroup[0]
|
||||
|
|
Loading…
Reference in New Issue
Block a user