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

Compare text with equality, not "is" identity.

parent a065bc97
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ def test_skip_unless_tools_exist_missing():
def skip_unless_tool_is_at_least():
func = skip_unless_tool_is_at_least
assert func("/missing", 1, 1).name is "skip"
assert func("/missing", 1, 1).name == "skip"
# pytest.skipif().args[0] contains the evaluated statement
assert func("cat", 1, 1).args[0] is False
assert func("cat", 1, "1.2d.45+b8").args[0] is True
......
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