From 3b44a409de0ac3ab2558e77716b8f0c821db6cde Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 28 Aug 2013 12:26:28 +0200 Subject: [PATCH] Fix @requires_freebsd_version and @requires_linux_version decorators of test.support, run the test if the platform matchs! --- Lib/test/support/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 1c6ee0300be..9f378fdf9e1 100644 --- 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