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

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

== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 03:42:44) [PyPy 8.0.0-alpha0 with GCC Apple LLVM 16.0.0 (clang-1600.0.26.6)]
== macOS-15.7.7-arm64-arm-64bit little-endian
== Python build: release with_assert
== cwd: /private/tmp/buildbot-arm64/pytest/test_python_worker_65684æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 393234495
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 6.99 Run 1 test sequentially in a single process
0:00:00 load avg: 6.99 [1/1] test_cprofile
test_bad_counter_during_dealloc (test.test_cprofile.CProfileTest.test_bad_counter_during_dealloc) ... ERROR
test_calling_conventions (test.test_cprofile.CProfileTest.test_calling_conventions) ... ok
test_cprofile (test.test_cprofile.CProfileTest.test_cprofile) ... ok
test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) ... 
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_pystart_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_pyreturn_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_ccall_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_creturn_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_pystart_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_pyreturn_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_ccall_callback') ... ERROR
  test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_creturn_callback') ... ERROR
test_evil_external_timer (test.test_cprofile.CProfileTest.test_evil_external_timer) ... ERROR
test_output_file_when_changing_directory (test.test_cprofile.CProfileTest.test_output_file_when_changing_directory) ... ok
test_profile_as_context_manager (test.test_cprofile.CProfileTest.test_profile_as_context_manager) ... ERROR
test_profile_enable_disable (test.test_cprofile.CProfileTest.test_profile_enable_disable) ... ERROR
test_run (test.test_cprofile.CProfileTest.test_run) ... ok
test_run_profile_as_module (test.test_cprofile.CProfileTest.test_run_profile_as_module) ... ok
test_runctx (test.test_cprofile.CProfileTest.test_runctx) ... ok
test_second_profiler (test.test_cprofile.CProfileTest.test_second_profiler) ... FAIL
test_throw (test.test_cprofile.CProfileTest.test_throw)
gh-106152 ... FAIL
test_calling_conventions (test.test_profile.ProfileTest.test_calling_conventions) ... ok
test_cprofile (test.test_profile.ProfileTest.test_cprofile) ... ok
test_output_file_when_changing_directory (test.test_profile.ProfileTest.test_output_file_when_changing_directory) ... ok
test_run (test.test_profile.ProfileTest.test_run) ... ok
test_run_profile_as_module (test.test_profile.ProfileTest.test_run_profile_as_module) ... ok
test_runctx (test.test_profile.ProfileTest.test_runctx) ... ok
test_sort (test.test_cprofile.TestCommandLine.test_sort) ... ok

======================================================================
ERROR: test_bad_counter_during_dealloc (test.test_cprofile.CProfileTest.test_bad_counter_during_dealloc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 29, in test_bad_counter_during_dealloc
    obj.clear()
        ^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute 'clear'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_pystart_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute '_pystart_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_pyreturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute '_pyreturn_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_ccall_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute '_ccall_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<_lsprof.Profiler object at 0x000000014037ed58>, method='_creturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute '_creturn_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_pystart_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Profile' object has no attribute '_pystart_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_pyreturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Profile' object has no attribute '_pyreturn_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_ccall_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Profile' object has no attribute '_ccall_callback'

======================================================================
ERROR: test_crash_with_not_enough_args (test.test_cprofile.CProfileTest.test_crash_with_not_enough_args) (profile=<cProfile.Profile object at 0x000000014025c758>, method='_creturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 45, in test_crash_with_not_enough_args
    method_obj = getattr(profile, method)
                 ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Profile' object has no attribute '_creturn_callback'

======================================================================
ERROR: test_evil_external_timer (test.test_cprofile.CProfileTest.test_evil_external_timer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 72, in test_evil_external_timer
    profiler_with_evil_timer.clear()
                             ^^^^^
AttributeError: '_lsprof.Profiler' object has no attribute 'clear'

======================================================================
ERROR: test_profile_as_context_manager (test.test_cprofile.CProfileTest.test_profile_as_context_manager)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 110, in test_profile_as_context_manager
    sys.monitoring.get_tool(sys.monitoring.PROFILER_ID), "cProfile")
        ^^^^^^^^^^
AttributeError: module 'sys' has no attribute 'monitoring'

======================================================================
ERROR: test_profile_enable_disable (test.test_cprofile.CProfileTest.test_profile_enable_disable)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 93, in test_profile_enable_disable
    sys.monitoring.get_tool(sys.monitoring.PROFILER_ID), "cProfile")
        ^^^^^^^^^^
AttributeError: module 'sys' has no attribute 'monitoring'

======================================================================
FAIL: test_second_profiler (test.test_cprofile.CProfileTest.test_second_profiler)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 119, in test_second_profiler
    self.assertRaises(ValueError, pr2.enable)
         ^^^^^^^^^^^^
AssertionError: ValueError not raised by enable

======================================================================
FAIL: test_throw (test.test_cprofile.CProfileTest.test_throw)
gh-106152
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/matti/build-worker-arm64/pypy-c-jit-macos-arm64/build/lib-python/3/test/test_cprofile.py", line 139, in test_throw
    self.assertEqual(cc, 2)
         ^^^^^^^^^^^
AssertionError: 1 != 2

----------------------------------------------------------------------
Ran 20 tests in 0.463s

FAILED (failures=2, errors=12)
0:00:00 load avg: 6.99 [1/1/1] test_cprofile failed (12 errors, 2 failures)

== Tests result: FAILURE ==

1 test failed:
    test_cprofile

Total duration: 536 ms
Total tests: run=20 failures=2
Total test files: run=1/1 failed=1
Result: FAILURE
test test_cprofile failed
builder: pypy-c-jit-macos-arm64 build #1309+
test: lib-python/3/test/test_cprofile.py::unmodified