Commit 6a9faf80 authored by Chris Lamb's avatar Chris Lamb 💬

Add some explicit return values to appease pylint, etc.

parent b99b03d5
......@@ -75,6 +75,7 @@ def skipif(*args, **kwargs):
def inner(*args2, **kwargs2):
if args[0]: # i.e. the condition of the skipif() is True
return pytest.fail(msg)
return None
return inner
......@@ -182,6 +183,8 @@ def module_is_not_importable(x):
# import ``debian`` so we must handle that failing.
return True
return False
def skip_unless_module_exists(name):
return skipif(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment