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

Skip to content

Commit 3b44a40

Browse files
committed
Fix @requires_freebsd_version and @requires_linux_version decorators of
test.support, run the test if the platform matchs!
1 parent b84fc0f commit 3b44a40

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
@@ -430,6 +430,8 @@ def wrapper(*args, **kw):
430430
raise unittest.SkipTest(
431431
"%s version %s or higher required, not %s"
432432
% (sysname, min_version_txt, version_txt))
433+
return func(*args, **kw)
434+
wrapper.min_version = min_version
433435
return wrapper
434436
return decorator
435437

0 commit comments

Comments
 (0)