mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
Only compare sorted patterns in test
Try to work around flaky tests on Python 3.5
This commit is contained in:
parent
82045aac8a
commit
4e04080b76
|
@ -111,7 +111,7 @@ def test_entity_ruler_serialize_bytes(nlp, patterns):
|
|||
assert len(new_ruler.patterns) == len(ruler.patterns)
|
||||
for pattern in ruler.patterns:
|
||||
assert pattern in new_ruler.patterns
|
||||
assert new_ruler.labels == ruler.labels
|
||||
assert sorted(new_ruler.labels) == sorted(ruler.labels)
|
||||
|
||||
|
||||
def test_entity_ruler_serialize_phrase_matcher_attr_bytes(nlp, patterns):
|
||||
|
|
Loading…
Reference in New Issue
Block a user