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, 07:59:28) [PyPy 8.0.0-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-x86_64-i386-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-x86_64/pytest/test_python_worker_62505æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3875869553
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 2.04 Run 1 test sequentially in a single process
0:00:00 load avg: 2.04 [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.01048899999999997 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.01481300000000002 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.009494000000000002 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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/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: dlopen(/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so, 0x0006): tried: '/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file), '/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib-python/3/test/support/__init__.py", line 1784, in run_in_subinterp
    import _testcapi
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.py", line 25, in <module>
    mod = _pypy_testcapi.compile_shared(cfile, '_testcapi', thisdir)
                         ^^^^^^^^^^^^^^
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/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: dlopen(/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so, 0x0006): tried: '/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file), '/Users/matti/build-worker-x86_64/pypy-c-jit-macos-x86-64/build/lib_pypy/_testcapi.pypy312-pp80-darwin.so' (no such file)

During handling of the above exception, another exception occurred:

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

======================================================================
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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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.014803999999999984 not less than or equal to 0.009652500000000008

======================================================================
FAIL: test_intconversion (test.test_int.IntTestCases.test_intconversion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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.179s

FAILED (failures=2, errors=2, skipped=7)
0:00:00 load avg: 2.04 [1/1/1] test_int failed (2 errors, 2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_int

Total duration: 347 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-macos-x86-64 build #1326+
test: lib-python/3/test/test_int.py::unmodified