Skip to content
Snippets Groups Projects
Commit eb60f70d authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Use `pytest.xfail` over `assert False`.

parent 3be080e9
No related branches found
No related tags found
No related merge requests found
......@@ -38,11 +38,11 @@ fuzzy_tar3 = load_fixture(data('fuzzy3.tar'))
@skip_unless_tools_exist()
def test_skip_unless_tools_exist_empty():
assert False, "Test should always be skipped"
pytest.xfail("Test should always be skipped")
@skip_unless_tools_exist('/missing')
def test_skip_unless_tools_exist_missing():
assert False, "Test should always be skipped"
pytest.xfail("Test should always be skipped")
@pytest.mark.skipif(miss_tlsh, reason='tlsh is missing')
def test_fuzzy_matching(fuzzy_tar1, fuzzy_tar2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment