[Python-checkins] cpython (merge 3.3 -> default): (Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version

victor.stinner python-checkins at python.org
Wed Aug 28 12:44:50 CEST 2013


http://hg.python.org/cpython/rev/f98fd5712b0e
changeset:   85433:f98fd5712b0e
parent:      85432:2cb26c67a55a
parent:      85428:84debb4abd50
user:        Victor Stinner <vstinner at wyplay.com>
date:        Wed Aug 28 12:34:16 2013 +0200
summary:
  (Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
decorators of test.support, run the test if the platform matchs!

files:
  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
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -431,6 +431,8 @@
                         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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list