Skip to content

Commit 44b7c6a

Browse files
committed
apply docstring suggestion and shorten Windows / WASI check
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
1 parent c58d297 commit 44b7c6a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Lib/test/support/__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,17 +1773,15 @@ def skip_if_pgo_task(test):
17731773

17741774

17751775
def skip_if_unlimited_stack_size(test):
1776-
"""
1777-
Skip decorator for tests not run when an unlimited stack size is configured.
1776+
"""Skip decorator for tests not run when an unlimited stack size is configured.
17781777
1779-
Tests using support.infinite_recursion([...]) may otherwise run into an infinite loop,
1780-
running until the memory on the system is filled and crashing due to OOM.
1778+
Tests using support.infinite_recursion([...]) may otherwise run into
1779+
an infinite loop, running until the memory on the system is filled and
1780+
crashing due to OOM.
17811781
1782-
See gh-143460: Python 3.14/3.15a build aborting due to OOM during test_functools / test_json
1782+
See https://github.com/python/cpython/issues/143460.
17831783
"""
1784-
if is_wasi:
1785-
return test
1786-
if sys.platform.startswith('win'):
1784+
if is_wasi or os.name == "nt":
17871785
return test
17881786

17891787
import resource

0 commit comments

Comments
 (0)