Commit b28889ef authored by Victor Stinner's avatar Victor Stinner

Fix @requires_freebsd_version and @requires_linux_version decorators of

test.support, run the test if the platform matchs!
parent c8f7a6c5
...@@ -430,6 +430,8 @@ def _requires_unix_version(sysname, min_version): ...@@ -430,6 +430,8 @@ def _requires_unix_version(sysname, min_version):
raise unittest.SkipTest( raise unittest.SkipTest(
"%s version %s or higher required, not %s" "%s version %s or higher required, not %s"
% (sysname, min_version_txt, version_txt)) % (sysname, min_version_txt, version_txt))
return func(*args, **kw)
wrapper.min_version = min_version
return wrapper return wrapper
return decorator return decorator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment