summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-08-28 10:26:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-08-28 10:26:28 (GMT)
commit3b44a409de0ac3ab2558e77716b8f0c821db6cde (patch)
tree689f8a97170632eb0db15fd6a1ddcf109eca14d0 /Lib
parentb84fc0fd9fb77abd63ab81553a080dd2cc56f1b1 (diff)
downloadcpython-3b44a409de0ac3ab2558e77716b8f0c821db6cde.zip
cpython-3b44a409de0ac3ab2558e77716b8f0c821db6cde.tar.gz
cpython-3b44a409de0ac3ab2558e77716b8f0c821db6cde.tar.bz2
Fix @requires_freebsd_version and @requires_linux_version decorators of
test.support, run the test if the platform matchs!
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 1c6ee03..9f378fd 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -430,6 +430,8 @@ def _requires_unix_version(sysname, min_version):
raise unittest.SkipTest(
"%s version %s or higher required, not %s"
% (sysname, min_version_txt, version_txt))
+ return func(*args, **kw)
+ wrapper.min_version = min_version
return wrapper
return decorator