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

lib-python/3/test/test_context.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_1093077æ
== CPU count: 4
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network

Using random seed: 3400401796
0:00:00 load avg: 1.00 Run 1 test sequentially in a single process
0:00:00 load avg: 1.00 [1/1] test_context
test_context_copy_1 (test.test_context.ContextTest.test_context_copy_1) ... ok
test_context_get_context_1 (test.test_context.ContextTest.test_context_get_context_1) ... ok
test_context_getset_1 (test.test_context.ContextTest.test_context_getset_1) ... ok
test_context_getset_2 (test.test_context.ContextTest.test_context_getset_2) ... ok
test_context_getset_3 (test.test_context.ContextTest.test_context_getset_3) ... ok
test_context_getset_4 (test.test_context.ContextTest.test_context_getset_4) ... ok
test_context_getset_5 (test.test_context.ContextTest.test_context_getset_5) ... ok
test_context_new_1 (test.test_context.ContextTest.test_context_new_1) ... FAIL
test_context_new_unhashable_str_subclass (test.test_context.ContextTest.test_context_new_unhashable_str_subclass) ... FAIL
test_context_run_1 (test.test_context.ContextTest.test_context_run_1) ... ok
test_context_run_2 (test.test_context.ContextTest.test_context_run_2) ... ok
test_context_run_3 (test.test_context.ContextTest.test_context_run_3) ... ok
test_context_run_4 (test.test_context.ContextTest.test_context_run_4) ... ok
test_context_run_5 (test.test_context.ContextTest.test_context_run_5) ... ok
test_context_run_6 (test.test_context.ContextTest.test_context_run_6) ... ok
test_context_run_7 (test.test_context.ContextTest.test_context_run_7) ... ok
test_context_subclassing_1 (test.test_context.ContextTest.test_context_subclassing_1) ... ok
test_context_threads_1 (test.test_context.ContextTest.test_context_threads_1) ... ok
test_context_typerrors_1 (test.test_context.ContextTest.test_context_typerrors_1) ... ok
test_context_var_new_1 (test.test_context.ContextTest.test_context_var_new_1) ... FAIL
test_context_var_repr_1 (test.test_context.ContextTest.test_context_var_repr_1) ... ok
test_hamt_basics_1 (test.test_context.HamtTest.test_hamt_basics_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_basics_2 (test.test_context.HamtTest.test_hamt_basics_2) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_basics_3 (test.test_context.HamtTest.test_hamt_basics_3) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_basics_4 (test.test_context.HamtTest.test_hamt_basics_4) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_collision_1 (test.test_context.HamtTest.test_hamt_collision_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_collision_3 (test.test_context.HamtTest.test_hamt_collision_3) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_delete_1 (test.test_context.HamtTest.test_hamt_delete_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_delete_2 (test.test_context.HamtTest.test_hamt_delete_2) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_delete_3 (test.test_context.HamtTest.test_hamt_delete_3) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_delete_4 (test.test_context.HamtTest.test_hamt_delete_4) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_delete_5 (test.test_context.HamtTest.test_hamt_delete_5) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_eq_1 (test.test_context.HamtTest.test_hamt_eq_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_eq_2 (test.test_context.HamtTest.test_hamt_eq_2) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_gc_1 (test.test_context.HamtTest.test_hamt_gc_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_gc_2 (test.test_context.HamtTest.test_hamt_gc_2) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_getitem_1 (test.test_context.HamtTest.test_hamt_getitem_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_in_1 (test.test_context.HamtTest.test_hamt_in_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_items_1 (test.test_context.HamtTest.test_hamt_items_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_items_2 (test.test_context.HamtTest.test_hamt_items_2) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_items_3 (test.test_context.HamtTest.test_hamt_items_3) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_keys_1 (test.test_context.HamtTest.test_hamt_keys_1) ... skipped '_testcapi lacks "hamt()" function'
test_hamt_stress (test.test_context.HamtTest.test_hamt_stress) ... skipped '_testcapi lacks "hamt()" function'
test_hashkey_helper_1 (test.test_context.HamtTest.test_hashkey_helper_1) ... skipped '_testcapi lacks "hamt()" function'

======================================================================
FAIL: test_context_new_1 (test.test_context.ContextTest.test_context_new_1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_context.py", line 79, in test_context_new_1
    contextvars.Context(1)
                ^^^^^^^
TypeError: Context.__init__() takes 1 positional argument but 2 were given

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_context.py", line 78, in test_context_new_1
    with self.assertRaisesRegex(TypeError, 'any arguments'):
AssertionError: "any arguments" does not match "Context.__init__() takes 1 positional argument but 2 were given"

======================================================================
FAIL: test_context_new_unhashable_str_subclass (test.test_context.ContextTest.test_context_new_unhashable_str_subclass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_context.py", line 92, in test_context_new_unhashable_str_subclass
    with self.assertRaisesRegex(TypeError, 'unhashable type'):
AssertionError: TypeError not raised

======================================================================
FAIL: test_context_var_new_1 (test.test_context.ContextTest.test_context_var_new_1)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_context.py", line 30, in test_context_var_new_1
    contextvars.ContextVar()
                ^^^^^^^^^^
TypeError: ContextVar.__init__() missing 1 required positional argument: 'name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/build_dir/pypy-c-jit-linux-x86-64/build/lib-python/3/test/test_context.py", line 29, in test_context_var_new_1
    with self.assertRaisesRegex(TypeError, 'takes exactly 1'):
AssertionError: "takes exactly 1" does not match "ContextVar.__init__() missing 1 required positional argument: 'name'"

----------------------------------------------------------------------
Ran 44 tests in 0.353s

FAILED (failures=3, skipped=23)
0:00:00 load avg: 1.00 [1/1/1] test_context failed (3 failures)

== Tests result: FAILURE ==

1 test failed:
    test_context

Total duration: 460 ms
Total tests: run=44 failures=3 skipped=23
Total test files: run=1/1 failed=1
Result: FAILURE
test test_context failed
builder: pypy-c-jit-linux-x86-64 build #11857+
test: lib-python/3/test/test_context.py::unmodified