Fix @requires_freebsd_version and @requires_linux_version decorators of

test.support, run the test if the platform matchs!
This commit is contained in:
Victor Stinner 2013-08-28 12:26:28 +02:00
parent b84fc0fd9f
commit 3b44a409de
1 changed files with 2 additions and 0 deletions

View File

@ -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