summaryrefslogtreecommitdiffhomepage
path: root/tests/util.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-23 16:37:52 -0700
committerJeff Forcier <jeff@bitprophet.org>2017-10-23 16:37:52 -0700
commit1d8c23669fce6e3850632cb05bccde3040816d96 (patch)
treefb5b1ce0468e6aca1acdae2e0b3932ff40f00fe0 /tests/util.py
parentda0e6bffb09c5556bfabb5b711d1e81213cd8f2f (diff)
Whoops, most uses of skipif REQUIRE reason=
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py
index db1f077c..051a36ba 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -20,4 +20,5 @@ def needs_builtin(name):
"""
Skip decorated test if builtin name does not exist.
"""
- return pytest.mark.skipif(not hasattr(builtins, name))
+ reason = "Test requires a builtin '{}'".format(name)
+ return pytest.mark.skipif(not hasattr(builtins, name), reason=reason)