diff options
author | Victor Stinner <vstinner@wyplay.com> | 2013-08-28 10:34:16 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@wyplay.com> | 2013-08-28 10:34:16 (GMT) |
commit | d98af985d0e8e2199e5c8bcb8a2da6a849e86d9a (patch) | |
tree | 44f21f5527221abdbdd85ce635d51801adf336dc | |
parent | d39dca9e33e6be0d234184eb1527c00ec04f8857 (diff) | |
parent | 3b44a409de0ac3ab2558e77716b8f0c821db6cde (diff) | |
download | cpython-d98af985d0e8e2199e5c8bcb8a2da6a849e86d9a.zip cpython-d98af985d0e8e2199e5c8bcb8a2da6a849e86d9a.tar.gz cpython-d98af985d0e8e2199e5c8bcb8a2da6a849e86d9a.tar.bz2 |
(Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
decorators of test.support, run the test if the platform matchs!
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 02ea298..03dc6b6 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -431,6 +431,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 |