Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

lib-python/3/test/test_int.py::unmodified

== PyPy 3.12.13 (a3c6b428e7a8, Jul 09 2026, 03:38:33) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2016855æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3501104726
0:00:00 load avg: 4.87 Run 1 test sequentially in a single process
0:00:00 load avg: 4.87 [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. ... ok
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. ... ok
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. ... ok
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. ... ok
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 "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 17, in <module>
    module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 813, in module_from_spec
  File "<builtin>/frozen importlib._bootstrap_external", line 1293, in create_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ImportError: /build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.pypy312-pp80-x86-linux-gnu.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/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 "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/support/__init__.py", line 1784, in run_in_subinterp
    import _testcapi
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 25, in <module>
    mod = _pypy_testcapi.compile_shared(cfile, '_testcapi', thisdir)
                         ^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 65, in compile_shared
    from distutils.ccompiler import new_compiler
ModuleNotFoundError: No module named 'distutils'

======================================================================
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 "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 17, in <module>
    module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 813, in module_from_spec
  File "<builtin>/frozen importlib._bootstrap_external", line 1293, in create_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ImportError: /build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.pypy312-pp80-x86-linux-gnu.so: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/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 "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/support/__init__.py", line 1784, in run_in_subinterp
    import _testcapi
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 25, in <module>
    mod = _pypy_testcapi.compile_shared(cfile, '_testcapi', thisdir)
                         ^^^^^^^^^^^^^^
  File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 65, in compile_shared
    from distutils.ccompiler import new_compiler
ModuleNotFoundError: No module named 'distutils'

======================================================================
FAIL: test_intconversion (test.test_int.IntTestCases.test_intconversion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-32/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 "/build_dir/pypy-c-jit-linux-x86-32/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.650s

FAILED (failures=1, errors=2, skipped=4)
0:00:01 load avg: 4.87 [1/1/1] test_int failed (2 errors, 1 failure)

== Tests result: FAILURE ==

1 test failed:
    test_int

Total duration: 1.0 sec
Total tests: run=45 failures=1 skipped=4
Total test files: run=1/1 failed=1
Result: FAILURE
test test_int failed
builder: pypy-c-jit-linux-x86-32 build #8377+
test: lib-python/3/test/test_int.py::unmodified