We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c8c9f commit c58d297Copy full SHA for c58d297
Lib/test/support/__init__.py
@@ -1787,8 +1787,8 @@ def skip_if_unlimited_stack_size(test):
1787
return test
1788
1789
import resource
1790
- stack_size = resource.getrlimit(resource.RLIMIT_STACK)
1791
- unlimited_stack_size_cond = stack_size == (-1, -1) or stack_size == (0xFFFFFFFFFFFFFFFF, 0xFFFFFFFFFFFFFFFF)
+ curlim, maxlim = resource.getrlimit(resource.RLIMIT_STACK)
+ unlimited_stack_size_cond = curlim == maxlim and curlim in (-1, 0xFFFFFFFFFFFFFFFF)
1792
reason = "Not run due to unlimited stack size"
1793
return unittest.skipIf(unlimited_stack_size_cond, reason)(test)
1794
0 commit comments