lib-python/3/test/test_thread.py::unmodified
== PyPy 3.12.13 (37b9293223c4, Jul 09 2026, 17:47:31) [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_1098122æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 3244069168
0:00:00 load avg: 0.71 Run 1 test sequentially in a single process
0:00:00 load avg: 0.71 [1/1] test_thread
test_barrier (test.test_thread.BarrierTest.test_barrier) ... task 0 will run for 0us
task 0 entering 0
task 1 will run for 27us
task 1 entering 0
task 2 will run for 30us
task 2 entering 0
task 3 will run for 19us
task 3 entering 0
task 4 will run for 12us
task 4 entering 0
task 5 will run for 35us
task 5 entering 0
task 6 will run for 82us
task 6 entering 0
task 7 will run for 33us
task 7 entering 0
waiting for tasks to end
task 8 will run for 34us
task 9 will run for 24us
task 8 entering 0
task 9 entering 0
task 9 leaving barrier
task 9 will run for 76us
task 0 leaving barrier
task 0 will run for 0us
task 1 leaving barrier
task 1 will run for 14us
task 2 leaving barrier
task 2 will run for 28us
task 4 leaving barrier
task 3 leaving barrier
task 4 will run for 97us
task 1 entering 1
task 2 entering 1
task 5 leaving barrier
task 5 will run for 17us
task 6 leaving barrier
task 6 will run for 93us
task 7 leaving barrier
task 8 leaving barrier
task 9 entering 1
task 4 entering 1
task 0 entering 1
task 8 will run for 46us
task 3 will run for 79us
task 7 will run for 18us
task 5 entering 1
task 7 entering 1
task 3 entering 1
task 6 entering 1
task 8 entering 1
task 8 leaving barrier
task 8 will run for 2us
task 1 leaving barrier
task 1 will run for 96us
task 2 leaving barrier
task 2 will run for 23us
task 4 leaving barrier
task 9 leaving barrier
task 5 leaving barrier
task 5 will run for 4us
task 0 leaving barrier
task 2 entering 2
task 1 entering 2
task 9 will run for 95us
task 4 will run for 62us
task 0 will run for 0us
task 8 entering 2
task 7 leaving barrier
task 3 leaving barrier
task 6 leaving barrier
task 5 entering 2
task 0 entering 2
task 4 entering 2
task 9 entering 2
task 7 will run for 45us
task 3 will run for 1us
task 6 will run for 58us
task 7 entering 2
task 3 entering 2
task 6 entering 2
task 6 leaving barrier
task 2 leaving barrier
task 1 leaving barrier
task 8 leaving barrier
task 5 leaving barrier
task 0 leaving barrier
task 4 leaving barrier
task 9 leaving barrier
task 7 leaving barrier
task 3 leaving barrier
tasks done
ok
test_acquire_contended (test.test_thread.LockTests.test_acquire_contended) ... ok
test_acquire_destroy (test.test_thread.LockTests.test_acquire_destroy) ... ok
test_acquire_release (test.test_thread.LockTests.test_acquire_release) ... ok
test_at_fork_reinit (test.test_thread.LockTests.test_at_fork_reinit) ... ok
test_constructor (test.test_thread.LockTests.test_constructor) ... ok
test_different_thread (test.test_thread.LockTests.test_different_thread) ... ok
test_locked_repr (test.test_thread.LockTests.test_locked_repr) ... ok
test_reacquire (test.test_thread.LockTests.test_reacquire) ... ok
test_repr (test.test_thread.LockTests.test_repr) ... ok
test_state_after_timeout (test.test_thread.LockTests.test_state_after_timeout) ... ok
test_thread_leak (test.test_thread.LockTests.test_thread_leak) ... ok
test_timeout (test.test_thread.LockTests.test_timeout) ... ok
test_try_acquire (test.test_thread.LockTests.test_try_acquire) ... ok
test_try_acquire_contended (test.test_thread.LockTests.test_try_acquire_contended) ... ok
test_weakref_deleted (test.test_thread.LockTests.test_weakref_deleted) ... ok
test_weakref_exists (test.test_thread.LockTests.test_weakref_exists) ... ok
test_with (test.test_thread.LockTests.test_with) ... ok
test_forkinthread (test.test_thread.TestForkInThread.test_forkinthread) ... ok
test__count (test.test_thread.ThreadRunningTests.test__count) ... ok
test_nt_and_posix_stack_size (test.test_thread.ThreadRunningTests.test_nt_and_posix_stack_size) ... caught expected ValueError setting stack_size(4096)
successfully set stack_size(262144)
successfully set stack_size(1048576)
successfully set stack_size(0)
trying stack_size = (262144)
creating task 1
creating task 2
task 1 will run for 94us
creating task 3
task 2 will run for 39us
task 1 done
task 2 done
creating task 4
task 3 will run for 37us
creating task 5
task 3 done
task 4 will run for 72us
creating task 6
task 5 will run for 31us
task 4 done
task 6 will run for 78us
task 5 done
task 6 done
creating task 7
creating task 8
task 7 will run for 25us
task 8 will run for 2us
creating task 9
task 7 done
task 8 done
task 9 will run for 41us
task 9 done
creating task 10
waiting for all tasks to complete
task 10 will run for 45us
task 10 done
all tasks done
trying stack_size = (1048576)
creating task 1
creating task 2
task 1 will run for 85us
creating task 3
task 2 will run for 78us
task 1 done
task 3 will run for 61us
creating task 4
task 2 done
task 3 done
creating task 5
task 4 will run for 20us
task 5 will run for 52us
creating task 6
task 5 done
task 4 done
creating task 7
task 6 will run for 9us
task 7 will run for 55us
task 6 done
task 7 done
creating task 8
task 8 will run for 13us
creating task 9
task 8 done
creating task 10
task 9 will run for 75us
waiting for all tasks to complete
task 9 done
task 10 will run for 76us
task 10 done
all tasks done
ok
test_stack_size (test.test_thread.ThreadRunningTests.test_stack_size) ... ok
test_starting_threads (test.test_thread.ThreadRunningTests.test_starting_threads) ... creating task 1
creating task 2
task 1 will run for 53us
creating task 3
creating task 4
task 1 done
task 2 will run for 82us
task 3 will run for 19us
task 3 done
creating task 5
task 2 done
creating task 6
task 4 will run for 97us
task 5 will run for 89us
task 4 done
task 5 done
creating task 7
creating task 8
task 6 will run for 69us
task 7 will run for 17us
task 7 done
task 6 done
creating task 9
creating task 10
task 8 will run for 11us
task 8 done
task 9 will run for 34us
waiting for tasks to complete...
task 10 will run for 26us
task 9 done
task 10 done
all tasks done
ok
test_unraisable_exception (test.test_thread.ThreadRunningTests.test_unraisable_exception) ... FAIL
======================================================================
FAIL: test_unraisable_exception (test.test_thread.ThreadRunningTests.test_unraisable_exception)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_thread.py", line 159, in test_unraisable_exception
self.assertEqual(cm.unraisable.err_msg,
^^^^^^^^^^^
AssertionError: 'Exception ignored in thread 140395384116992 started by ' != 'Exception ignored in thread started by'
- Exception ignored in thread 140395384116992 started by
? ---------------- -
+ Exception ignored in thread started by
----------------------------------------------------------------------
Ran 24 tests in 1.172s
FAILED (failures=1)
0:00:01 load avg: 0.71 [1/1/1] test_thread failed (1 failure)
== Tests result: FAILURE ==
1 test failed:
test_thread
Total duration: 1.2 sec
Total tests: run=24 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_thread failed
builder: pypy-c-jit-linux-x86-64 build #11857+
test: lib-python/3/test/test_thread.py::unmodified