Skip to content

Commit 2877729

Browse files
committed
make hex value for stack limit check more readable
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
1 parent 44b7c6a commit 2877729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ def skip_if_unlimited_stack_size(test):
17861786

17871787
import resource
17881788
curlim, maxlim = resource.getrlimit(resource.RLIMIT_STACK)
1789-
unlimited_stack_size_cond = curlim == maxlim and curlim in (-1, 0xFFFFFFFFFFFFFFFF)
1789+
unlimited_stack_size_cond = curlim == maxlim and curlim in (-1, 0xFFFF_FFFF_FFFF_FFFF)
17901790
reason = "Not run due to unlimited stack size"
17911791
return unittest.skipIf(unlimited_stack_size_cond, reason)(test)
17921792

0 commit comments

Comments
 (0)