mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +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)
|
lookups.get_table(table_name)
|
||||||
|
|
||||||
|
|
||||||
# This fails on Python 3.5
|
@pytest.mark.xfail(reason="This fails on Python 3.5")
|
||||||
@pytest.mark.xfail
|
|
||||||
def test_lookups_to_from_bytes():
|
def test_lookups_to_from_bytes():
|
||||||
lookups = Lookups()
|
lookups = Lookups()
|
||||||
lookups.add_table("table1", {"foo": "bar", "hello": "world"})
|
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
|
assert new_lookups.to_bytes() == lookups_bytes
|
||||||
|
|
||||||
|
|
||||||
# This fails on Python 3.5
|
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||||
@pytest.mark.xfail
|
|
||||||
def test_lookups_to_from_disk():
|
def test_lookups_to_from_disk():
|
||||||
lookups = Lookups()
|
lookups = Lookups()
|
||||||
lookups.add_table("table1", {"foo": "bar", "hello": "world"})
|
lookups.add_table("table1", {"foo": "bar", "hello": "world"})
|
||||||
|
@ -78,8 +76,7 @@ def test_lookups_to_from_disk():
|
||||||
assert table2.get_string("b") == 2
|
assert table2.get_string("b") == 2
|
||||||
|
|
||||||
|
|
||||||
# This fails on Python 3.5
|
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||||
@pytest.mark.xfail
|
|
||||||
def test_lookups_to_from_bytes_via_vocab():
|
def test_lookups_to_from_bytes_via_vocab():
|
||||||
table_name = "test"
|
table_name = "test"
|
||||||
vocab = Vocab()
|
vocab = Vocab()
|
||||||
|
@ -97,8 +94,7 @@ def test_lookups_to_from_bytes_via_vocab():
|
||||||
assert new_vocab.to_bytes() == vocab_bytes
|
assert new_vocab.to_bytes() == vocab_bytes
|
||||||
|
|
||||||
|
|
||||||
# This fails on Python 3.5
|
@pytest.mark.skip(reason="This fails on Python 3.5")
|
||||||
@pytest.mark.xfail
|
|
||||||
def test_lookups_to_from_disk_via_vocab():
|
def test_lookups_to_from_disk_via_vocab():
|
||||||
table_name = "test"
|
table_name = "test"
|
||||||
vocab = Vocab()
|
vocab = Vocab()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user