mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Skip tests properly instead of xfailing them
This commit is contained in:
parent
16c2522791
commit
7194845234
|
@ -36,8 +36,7 @@ def test_lookups_api():
|
|||
lookups.get_table(table_name)
|
||||
|
||||
|
||||
# This fails on Python 3.5
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.xfail(reason="This fails on Python 3.5")
|
||||
def test_lookups_to_from_bytes():
|
||||
lookups = Lookups()
|
||||
lookups.add_table("table1", {"foo": "bar", "hello": "world"})
|
||||
|
@ -57,8 +56,7 @@ def test_lookups_to_from_bytes():
|
|||
assert new_lookups.to_bytes() == lookups_bytes
|
||||
|
||||
|
||||
# This fails on Python 3.5
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||
def test_lookups_to_from_disk():
|
||||
lookups = Lookups()
|
||||
lookups.add_table("table1", {"foo": "bar", "hello": "world"})
|
||||
|
@ -78,8 +76,7 @@ def test_lookups_to_from_disk():
|
|||
assert table2.get_string("b") == 2
|
||||
|
||||
|
||||
# This fails on Python 3.5
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||
def test_lookups_to_from_bytes_via_vocab():
|
||||
table_name = "test"
|
||||
vocab = Vocab()
|
||||
|
@ -97,8 +94,7 @@ def test_lookups_to_from_bytes_via_vocab():
|
|||
assert new_vocab.to_bytes() == vocab_bytes
|
||||
|
||||
|
||||
# This fails on Python 3.5
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||
def test_lookups_to_from_disk_via_vocab():
|
||||
table_name = "test"
|
||||
vocab = Vocab()
|
||||
|
|
Loading…
Reference in New Issue
Block a user