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

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

Using random seed: 4163765624
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 3.02 Run 1 test sequentially in a single process
0:00:00 load avg: 3.02 [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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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 "/Users/matti/build-worker-x86_64/pypy-c-jit-macos-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.428s

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

== Tests result: FAILURE ==

1 test failed:
    test_context

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