projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84fc0f
)
Fix @requires_freebsd_version and @requires_linux_version decorators of
author
Victor Stinner
<victor.stinner@gmail.com>
Wed, 28 Aug 2013 10:26:28 +0000
(12:26 +0200)
committer
Victor Stinner
<victor.stinner@gmail.com>
Wed, 28 Aug 2013 10:26:28 +0000
(12:26 +0200)
test.support, run the test if the platform matchs!
Lib/test/support/__init__.py
patch
|
blob
|
history
diff --git
a/Lib/test/support/__init__.py
b/Lib/test/support/__init__.py
index 1c6ee0300be8f5312d71b8977f6a711e6dfc352e..9f378fdf9e1cf4498ee360d1c3a76c152fd2559c 100644
(file)
--- 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