lib-python/3/test/test_int.py::unmodified
== PyPy 3.12.13 (421004c42b8a, Aug 21 2026, 03:33:31) [PyPy 8.0.0-alpha0 with GCC 14.2.1 20250110 (Red Hat 14.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.28 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_206096æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2061914634
0:00:00 load avg: 1.71 Run 1 test sequentially in a single process
0:00:00 load avg: 1.71 [1/1] test_int
test_denial_of_service_prevented_int_to_str (test.test_int.IntStrDigitLimitsTests.test_denial_of_service_prevented_int_to_str)
Regression test: ensure we fail before performing O(N**2) work. ... FAIL
test_denial_of_service_prevented_str_to_int (test.test_int.IntStrDigitLimitsTests.test_denial_of_service_prevented_str_to_int)
Regression test: ensure we fail before performing O(N**2) work. ... skipped '"slow" conversion took only 0.00971934000000002 seconds.'
test_disabled_limit (test.test_int.IntStrDigitLimitsTests.test_disabled_limit) ... ok
test_int_from_other_bases (test.test_int.IntStrDigitLimitsTests.test_int_from_other_bases) ... ok
test_int_max_str_digits_is_per_interpreter (test.test_int.IntStrDigitLimitsTests.test_int_max_str_digits_is_per_interpreter) ... ERROR
test_max_str_digits (test.test_int.IntStrDigitLimitsTests.test_max_str_digits) ... ok
test_max_str_digits_edge_cases (test.test_int.IntStrDigitLimitsTests.test_max_str_digits_edge_cases)
Ignore the +/- sign and space padding. ... ok
test_power_of_two_bases_unlimited (test.test_int.IntStrDigitLimitsTests.test_power_of_two_bases_unlimited)
The limit does not apply to power of 2 bases. ... ok
test_sign_not_counted (test.test_int.IntStrDigitLimitsTests.test_sign_not_counted) ... ok
test_underscores_ignored (test.test_int.IntStrDigitLimitsTests.test_underscores_ignored) ... ok
test_denial_of_service_prevented_int_to_str (test.test_int.IntSubclassStrDigitLimitsTests.test_denial_of_service_prevented_int_to_str)
Regression test: ensure we fail before performing O(N**2) work. ... skipped '"slow" conversion took only 0.013163091999999987 seconds.'
test_denial_of_service_prevented_str_to_int (test.test_int.IntSubclassStrDigitLimitsTests.test_denial_of_service_prevented_str_to_int)
Regression test: ensure we fail before performing O(N**2) work. ... skipped '"slow" conversion took only 0.009699958000000009 seconds.'
test_disabled_limit (test.test_int.IntSubclassStrDigitLimitsTests.test_disabled_limit) ... ok
test_int_from_other_bases (test.test_int.IntSubclassStrDigitLimitsTests.test_int_from_other_bases) ... ok
test_int_max_str_digits_is_per_interpreter (test.test_int.IntSubclassStrDigitLimitsTests.test_int_max_str_digits_is_per_interpreter) ... ERROR
test_max_str_digits (test.test_int.IntSubclassStrDigitLimitsTests.test_max_str_digits) ... ok
test_max_str_digits_edge_cases (test.test_int.IntSubclassStrDigitLimitsTests.test_max_str_digits_edge_cases)
Ignore the +/- sign and space padding. ... ok
test_power_of_two_bases_unlimited (test.test_int.IntSubclassStrDigitLimitsTests.test_power_of_two_bases_unlimited)
The limit does not apply to power of 2 bases. ... ok
test_sign_not_counted (test.test_int.IntSubclassStrDigitLimitsTests.test_sign_not_counted) ... ok
test_underscores_ignored (test.test_int.IntSubclassStrDigitLimitsTests.test_underscores_ignored) ... ok
test_basic (test.test_int.IntTestCases.test_basic) ... ok
test_error_message (test.test_int.IntTestCases.test_error_message) ... ok
test_int_base_bad_types (test.test_int.IntTestCases.test_int_base_bad_types)
Not integer types are not valid bases; issue16772. ... ok
test_int_base_indexable (test.test_int.IntTestCases.test_int_base_indexable) ... ok
test_int_base_limits (test.test_int.IntTestCases.test_int_base_limits)
Testing the supported limits of the int() base parameter. ... ok
test_int_memoryview (test.test_int.IntTestCases.test_int_memoryview) ... ok
test_int_returns_int_subclass (test.test_int.IntTestCases.test_int_returns_int_subclass) ... ok
test_int_subclass_with_index (test.test_int.IntTestCases.test_int_subclass_with_index) ... ok
test_int_subclass_with_int (test.test_int.IntTestCases.test_int_subclass_with_int) ... ok
test_intconversion (test.test_int.IntTestCases.test_intconversion) ... FAIL
test_invalid_signs (test.test_int.IntTestCases.test_invalid_signs) ... ok
test_issue31619 (test.test_int.IntTestCases.test_issue31619) ... ok
test_keyword_args (test.test_int.IntTestCases.test_keyword_args) ... ok
test_no_args (test.test_int.IntTestCases.test_no_args) ... ok
test_non_numeric_input_types (test.test_int.IntTestCases.test_non_numeric_input_types) ... ok
test_small_ints (test.test_int.IntTestCases.test_small_ints) ... skipped 'implementation detail specific to cpython'
test_string_float (test.test_int.IntTestCases.test_string_float) ... ok
test_underscores (test.test_int.IntTestCases.test_underscores) ... ok
test_unicode (test.test_int.IntTestCases.test_unicode) ... ok
test_pylong_int_divmod (test.test_int.PyLongModuleTests.test_pylong_int_divmod) ... ok
test_pylong_int_to_decimal (test.test_int.PyLongModuleTests.test_pylong_int_to_decimal) ... ok
test_pylong_int_to_decimal_2 (test.test_int.PyLongModuleTests.test_pylong_int_to_decimal_2) ... skipped "resource 'cpu' is not enabled"
test_pylong_misbehavior_error_path_from_str (test.test_int.PyLongModuleTests.test_pylong_misbehavior_error_path_from_str) ... skipped 'implementation detail specific to cpython'
test_pylong_misbehavior_error_path_to_str (test.test_int.PyLongModuleTests.test_pylong_misbehavior_error_path_to_str) ... skipped 'implementation detail specific to cpython'
test_pylong_str_to_int (test.test_int.PyLongModuleTests.test_pylong_str_to_int) ... ok
======================================================================
ERROR: test_int_max_str_digits_is_per_interpreter (test.test_int.IntStrDigitLimitsTests.test_int_max_str_digits_is_per_interpreter)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_int.py", line 814, in test_int_max_str_digits_is_per_interpreter
self.assertEqual(support.run_in_subinterp(code), 0,
^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/__init__.py", line 1788, in run_in_subinterp
return _testcapi.run_in_subinterp(code)
^^^^^^^^^^^^^^^^
RuntimeError: sub-interpreter creation failed
======================================================================
ERROR: test_int_max_str_digits_is_per_interpreter (test.test_int.IntSubclassStrDigitLimitsTests.test_int_max_str_digits_is_per_interpreter)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_int.py", line 814, in test_int_max_str_digits_is_per_interpreter
self.assertEqual(support.run_in_subinterp(code), 0,
^^^^^^^^^^^^^^^^
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/support/__init__.py", line 1788, in run_in_subinterp
return _testcapi.run_in_subinterp(code)
^^^^^^^^^^^^^^^^
RuntimeError: sub-interpreter creation failed
======================================================================
FAIL: test_denial_of_service_prevented_int_to_str (test.test_int.IntStrDigitLimitsTests.test_denial_of_service_prevented_int_to_str)
Regression test: ensure we fail before performing O(N**2) work.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_int.py", line 692, in test_denial_of_service_prevented_int_to_str
self.assertLessEqual(seconds_to_fail_huge, seconds_to_convert/2)
^^^^^^^^^^^^^^^
AssertionError: 0.012677464999999999 not less than or equal to 0.00870294000000002
======================================================================
FAIL: test_intconversion (test.test_int.IntTestCases.test_intconversion)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_int.py", line 440, in test_intconversion
int(TruncReturnsNonIntegral())
TypeError: __trunc__ returned non-Integral (type 'NonIntegral')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/buildbot/slave/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_int.py", line 442, in test_intconversion
self.assertEqual(str(e),
^^^^^^^^^^^
AssertionError: "__trunc__ returned non-Integral (type 'NonIntegral')" != '__trunc__ returned non-Integral (type NonIntegral)'
- __trunc__ returned non-Integral (type 'NonIntegral')
? - -
+ __trunc__ returned non-Integral (type NonIntegral)
----------------------------------------------------------------------
Ran 45 tests in 0.156s
FAILED (failures=2, errors=2, skipped=7)
0:00:00 load avg: 1.71 [1/1/1] test_int failed (2 errors, 2 failures)
== Tests result: FAILURE ==
1 test failed:
test_int
Total duration: 360 ms
Total tests: run=45 failures=2 skipped=7
Total test files: run=1/1 failed=1
Result: FAILURE
test test_int failed
builder: pypy-c-jit-linux-x86-64 build #11940+
test: lib-python/3/test/test_int.py::unmodified