lib-python/3/test/test_cprofile.py::unmodified
== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 04:08:29) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-6.1.0-22-amd64-x86_64-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /tmp/pytest/test_python_worker_1729591æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3446203447
0:00:00 load avg: 0.94 Run 1 test sequentially in a single process
0:00:00 load avg: 0.94 [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 0x00007f9dda2e8140>, 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 0x00007f9dda2e8140>, 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 0x00007f9dda2e8140>, 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 0x00007f9dda2e8140>, 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 0x00007f9dda2d6cd8>, 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 0x00007f9dda2d6cd8>, 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 0x00007f9dda2d6cd8>, 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 0x00007f9dda2d6cd8>, 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 "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2e8140>, method='_pystart_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2e8140>, method='_pyreturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2e8140>, method='_ccall_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2e8140>, method='_creturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2d6cd8>, method='_pystart_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2d6cd8>, method='_pyreturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2d6cd8>, method='_ccall_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 0x00007f9dda2d6cd8>, method='_creturn_callback')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/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 "/build_dir/pypy-c-jit-linux-x86-64/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 "/build_dir/pypy-c-jit-linux-x86-64/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 "/build_dir/pypy-c-jit-linux-x86-64/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 "/build_dir/pypy-c-jit-linux-x86-64/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 "/build_dir/pypy-c-jit-linux-x86-64/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.715s
FAILED (failures=2, errors=12)
0:00:00 load avg: 0.94 [1/1/1] test_cprofile failed (12 errors, 2 failures)
== Tests result: FAILURE ==
1 test failed:
test_cprofile
Total duration: 813 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-linux-x86-64 build #11860+
test: lib-python/3/test/test_cprofile.py::unmodified