diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2017-10-23 16:37:52 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2018-09-17 14:44:38 -0700 |
commit | 43a5c497f6d00c10fcf5e63d48284e1d25921caa (patch) | |
tree | 6f39079993d7f02cc242baa1c706e8cc5fe374bc | |
parent | aab6a1186cbfb946ebdfdfdb8fcbe20ff65ea809 (diff) |
Whoops, most uses of skipif REQUIRE reason=
-rw-r--r-- | tests/util.py | 3 |
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) |