summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2017-10-23 16:37:52 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-09-17 14:44:38 -0700
commit43a5c497f6d00c10fcf5e63d48284e1d25921caa (patch)
tree6f39079993d7f02cc242baa1c706e8cc5fe374bc
parentaab6a1186cbfb946ebdfdfdb8fcbe20ff65ea809 (diff)
Whoops, most uses of skipif REQUIRE reason=
-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)