Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d98af98

Browse files
committed
(Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
decorators of test.support, run the test if the platform matchs!
2 parents d39dca9 + 3b44a40 commit d98af98

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/support/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,8 @@ def wrapper(*args, **kw):
431431
raise unittest.SkipTest(
432432
"%s version %s or higher required, not %s"
433433
% (sysname, min_version_txt, version_txt))
434+
return func(*args, **kw)
435+
wrapper.min_version = min_version
434436
return wrapper
435437
return decorator
436438

0 commit comments

Comments
 (0)