lib-python/3/test/test_contextlib_async.py::unmodified
== PyPy 3.12.13 (e99dc7a98783, Jul 10 2026, 03:55:12) [PyPy 8.0.0-alpha0 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
== Linux-5.4.0-182-generic-i686-with-glibc2.17 little-endian
== Python build: release with_assert
== cwd: /build_dir/tmp/pytest/test_python_worker_2718292æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 190116544
0:00:00 load avg: 5.04 Run 1 test sequentially in a single process
0:00:00 load avg: 5.04 [1/1] test_contextlib_async
test_aclosing (test.test_contextlib_async.AclosingTestCase.test_aclosing) ... ok
test_aclosing_bpo41229 (test.test_contextlib_async.AclosingTestCase.test_aclosing_bpo41229) ... ok
test_aclosing_error (test.test_contextlib_async.AclosingTestCase.test_aclosing_error) ... ok
test_instance_docs (test.test_contextlib_async.AclosingTestCase.test_instance_docs) ... ok
test_contextmanager_attribs (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_attribs) ... ok
test_contextmanager_doc_attrib (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_doc_attrib) ... ok
test_contextmanager_except (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_except) ... ok
test_contextmanager_except_stopiter (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_except_stopiter) ... ok
test_contextmanager_finally (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_finally) ... ok
test_contextmanager_no_reraise (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_no_reraise) ... ok
test_contextmanager_non_normalised (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_non_normalised) ... ok
test_contextmanager_plain (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_plain) ... ok
test_contextmanager_traceback (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_traceback) ... ok
test_contextmanager_trap_no_yield (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_trap_no_yield) ... ok
test_contextmanager_trap_second_yield (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_trap_second_yield) ... ok
test_contextmanager_trap_yield_after_throw (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_trap_yield_after_throw) ... ok
test_contextmanager_wrap_runtimeerror (test.test_contextlib_async.AsyncContextManagerTestCase.test_contextmanager_wrap_runtimeerror) ... ok
test_decorating_method (test.test_contextlib_async.AsyncContextManagerTestCase.test_decorating_method) ... ok
test_decorator (test.test_contextlib_async.AsyncContextManagerTestCase.test_decorator) ... ok
test_decorator_with_exception (test.test_contextlib_async.AsyncContextManagerTestCase.test_decorator_with_exception) ... ok
test_instance_docstring_given_cm_docstring (test.test_contextlib_async.AsyncContextManagerTestCase.test_instance_docstring_given_cm_docstring) ... ok
test_keywords (test.test_contextlib_async.AsyncContextManagerTestCase.test_keywords) ... ok
test_recursive (test.test_contextlib_async.AsyncContextManagerTestCase.test_recursive) ... ok
test_async_gen_propagates_generator_exit (test.test_contextlib_async.TestAbstractAsyncContextManager.test_async_gen_propagates_generator_exit) ... ok
test_enter (test.test_contextlib_async.TestAbstractAsyncContextManager.test_enter) ... ok
test_exit_is_abstract (test.test_contextlib_async.TestAbstractAsyncContextManager.test_exit_is_abstract) ... ok
test_structural_subclassing (test.test_contextlib_async.TestAbstractAsyncContextManager.test_structural_subclassing) ... ok
test_async_callback (test.test_contextlib_async.TestAsyncExitStack.test_async_callback) ... ok
test_async_exit_exception_chaining (test.test_contextlib_async.TestAsyncExitStack.test_async_exit_exception_chaining) ... ok
test_async_exit_exception_explicit_none_context (test.test_contextlib_async.TestAsyncExitStack.test_async_exit_exception_explicit_none_context) ... ok
test_async_push (test.test_contextlib_async.TestAsyncExitStack.test_async_push) ... ok
test_body_exception_suppress (test.test_contextlib_async.TestAsyncExitStack.test_body_exception_suppress) ... ok
test_callback (test.test_contextlib_async.TestAsyncExitStack.test_callback) ... ok
test_close (test.test_contextlib_async.TestAsyncExitStack.test_close) ... ok
test_dont_reraise_RuntimeError (test.test_contextlib_async.TestAsyncExitStack.test_dont_reraise_RuntimeError) ... ok
test_enter_async_context (test.test_contextlib_async.TestAsyncExitStack.test_enter_async_context) ... ok
test_enter_async_context_errors (test.test_contextlib_async.TestAsyncExitStack.test_enter_async_context_errors) ... ok
test_enter_context (test.test_contextlib_async.TestAsyncExitStack.test_enter_context) ... ok
test_enter_context_errors (test.test_contextlib_async.TestAsyncExitStack.test_enter_context_errors) ... ok
test_excessive_nesting (test.test_contextlib_async.TestAsyncExitStack.test_excessive_nesting) ... ok
test_exit_exception_chaining (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_chaining) ... ok
test_exit_exception_chaining_reference (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_chaining_reference) ... ok
test_exit_exception_chaining_suppress (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_chaining_suppress) ... ok
test_exit_exception_explicit_none_context (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_explicit_none_context) ... ok
test_exit_exception_non_suppressing (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_non_suppressing) ... ok
test_exit_exception_traceback (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_traceback) ... FAIL
test_exit_exception_with_correct_context (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_with_correct_context) ... ok
test_exit_exception_with_existing_context (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_with_existing_context) ... ok
test_exit_raise (test.test_contextlib_async.TestAsyncExitStack.test_exit_raise) ... ok
test_exit_suppress (test.test_contextlib_async.TestAsyncExitStack.test_exit_suppress) ... ok
test_instance_bypass (test.test_contextlib_async.TestAsyncExitStack.test_instance_bypass) ... ok
test_instance_bypass_async (test.test_contextlib_async.TestAsyncExitStack.test_instance_bypass_async) ... ok
test_instance_docs (test.test_contextlib_async.TestAsyncExitStack.test_instance_docs) ... ok
test_no_resources (test.test_contextlib_async.TestAsyncExitStack.test_no_resources) ... ok
test_pop_all (test.test_contextlib_async.TestAsyncExitStack.test_pop_all) ... ok
test_push (test.test_contextlib_async.TestAsyncExitStack.test_push) ... ok
test_async_nullcontext (test.test_contextlib_async.TestAsyncNullcontext.test_async_nullcontext) ... ok
======================================================================
FAIL: test_exit_exception_traceback (test.test_contextlib_async.TestAsyncExitStack.test_exit_exception_traceback)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_contextlib.py", line 859, in test_exit_exception_traceback
self.assertEqual(
^^^^^^^^^^^
AssertionError: Lists differ: [('te[203 chars] ('__step_run_and_handle_result', 'result = co[173 chars]xc')] != [('te[203 chars] ('__aexit__', 'raise exc_details[1]'), ('__ae[111 chars]xc')]
First differing element 4:
('__step_run_and_handle_result', 'result = coro.send(None)')
('__aexit__', 'raise exc_details[1]')
First list contains 1 additional elements.
First extra element 8:
('raise_exc', 'raise exc')
[('test_exit_exception_traceback', 'with self.exit_stack() as stack:'),
('__exit__', 'return self.run_coroutine(self.__aexit__(*exc_details))'),
('run_coroutine', 'raise exc'),
('run_coroutine', 'raise exc'),
- ('__step_run_and_handle_result', 'result = coro.send(None)'),
('__aexit__', 'raise exc_details[1]'),
('__aexit__', 'cb_suppress = cb(*exc_details)'),
('_exit_wrapper', 'callback(*args, **kwds)'),
('raise_exc', 'raise exc')]
----------------------------------------------------------------------
Ran 57 tests in 0.177s
FAILED (failures=1)
0:00:00 load avg: 5.04 [1/1/1] test_contextlib_async failed (1 failure)
== Tests result: FAILURE ==
1 test failed:
test_contextlib_async
Total duration: 606 ms
Total tests: run=57 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_contextlib_async failed
builder: pypy-c-jit-linux-x86-32 build #8380+
test: lib-python/3/test/test_contextlib_async.py::unmodified