diff options
Diffstat (limited to 'test/__init__.py')
-rw-r--r-- | test/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/__init__.py b/test/__init__.py index 623edcf..f114f64 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -96,6 +96,9 @@ def skip_if(predicate, reason=None): return function_named(maybe, fn_name) return decorate +def requires_python_3(fn): + return skip_if(lambda: not py3k, "Requires Python 3.xx")(fn) + def requires_python_2(fn): return skip_if(lambda: py3k, "Requires Python 2.xx")(fn) |