[Python-checkins] cpython (3.3): Fix @requires_freebsd_version and @requires_linux_version decorators of
victor.stinner
python-checkins at python.org
Wed Aug 28 12:44:43 CEST 2013
http://hg.python.org/cpython/rev/84debb4abd50
changeset: 85428:84debb4abd50
branch: 3.3
parent: 85421:65a83a5cf77e
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Aug 28 12:26:28 2013 +0200
summary:
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
@@ -430,6 +430,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