lib-python/3/test/test_pyexpat.py::unmodified
== PyPy 3.12.13 (159a753059d5, Jul 18 2026, 03:30:26) [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_360214æ
== CPU count: 8
== encodings: locale=UTF-8 FS=utf-8
== resources (3): curses,gui,network
Using random seed: 2582476664
0:00:00 load avg: 7.03 Run 1 test sequentially in a single process
0:00:00 load avg: 7.03 [1/1] test_pyexpat
test1 (test.test_pyexpat.BufferTextTest.test1) ... ok
test2 (test.test_pyexpat.BufferTextTest.test2) ... ok
test3 (test.test_pyexpat.BufferTextTest.test3) ... ok
test4 (test.test_pyexpat.BufferTextTest.test4) ... ok
test5 (test.test_pyexpat.BufferTextTest.test5) ... ok
test6 (test.test_pyexpat.BufferTextTest.test6) ... ok
test7 (test.test_pyexpat.BufferTextTest.test7) ... ok
test_buffering_enabled (test.test_pyexpat.BufferTextTest.test_buffering_enabled) ... ok
test_default_to_disabled (test.test_pyexpat.BufferTextTest.test_default_to_disabled) ... ok
test_1000_bytes (test.test_pyexpat.ChardataBufferTest.test_1000_bytes) ... ok
test_1025_bytes (test.test_pyexpat.ChardataBufferTest.test_1025_bytes) ... ok
test_change_size_1 (test.test_pyexpat.ChardataBufferTest.test_change_size_1) ... ok
test_change_size_2 (test.test_pyexpat.ChardataBufferTest.test_change_size_2) ... ok
test_disabling_buffer (test.test_pyexpat.ChardataBufferTest.test_disabling_buffer) ... ok
test_unchanged_size (test.test_pyexpat.ChardataBufferTest.test_unchanged_size) ... ok
test_wrong_size (test.test_pyexpat.ChardataBufferTest.test_wrong_size) ... ok
test_codes (test.test_pyexpat.ErrorMessageTest.test_codes) ... ok
test_expaterror (test.test_pyexpat.ErrorMessageTest.test_expaterror) ... ok
test_ignore_use_foreign_dtd (test.test_pyexpat.ForeignDTDTests.test_ignore_use_foreign_dtd)
If UseForeignDTD is passed True and a document with an external ... ok
test_use_foreign_dtd (test.test_pyexpat.ForeignDTDTests.test_use_foreign_dtd)
If UseForeignDTD is passed True and a document without an external ... ok
test_exception (test.test_pyexpat.HandlerExceptionTest.test_exception) ... skipped 'implementation detail specific to cpython'
test (test.test_pyexpat.InterningTest.test) ... ok
test_issue9402 (test.test_pyexpat.InterningTest.test_issue9402) ... ok
test1 (test.test_pyexpat.MalformedInputTest.test1) ... ok
test2 (test.test_pyexpat.MalformedInputTest.test2) ... ok
test_payload_generation (test.test_pyexpat.MemoryProtectionTest.test_payload_generation) ... ok
test_set_activation_threshold__fail_for_subparser (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__fail_for_subparser) ... ok
test_set_activation_threshold__invalid_threshold_range (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__invalid_threshold_range) ... ERROR
test_set_activation_threshold__invalid_threshold_type (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__invalid_threshold_type) ... ok
test_set_activation_threshold__threshold_not_reached (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__threshold_not_reached) ... ok
test_set_activation_threshold__threshold_reached (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__threshold_reached) ... ok
test_set_maximum_amplification__amplification_exceeded (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__amplification_exceeded) ... ok
test_set_maximum_amplification__amplification_not_exceeded (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__amplification_not_exceeded) ... ok
test_set_maximum_amplification__fail_for_subparser (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__fail_for_subparser) ... ok
test_set_maximum_amplification__infinity (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__infinity) ... ok
test_set_maximum_amplification__invalid_max_factor_range (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__invalid_max_factor_range) ... ok
test_set_maximum_amplification__invalid_max_factor_type (test.test_pyexpat.MemoryProtectionTest.test_set_maximum_amplification__invalid_max_factor_type) ... ok
test_illegal (test.test_pyexpat.NamespaceSeparatorTest.test_illegal) ... ok
test_legal (test.test_pyexpat.NamespaceSeparatorTest.test_legal) ... ok
test_zero_length (test.test_pyexpat.NamespaceSeparatorTest.test_zero_length) ... ok
test_parent_parser_outlives_its_subparsers__chain (test.test_pyexpat.ParentParserLifetimeTest.test_parent_parser_outlives_its_subparsers__chain) ... ok
test_parent_parser_outlives_its_subparsers__multiple (test.test_pyexpat.ParentParserLifetimeTest.test_parent_parser_outlives_its_subparsers__multiple) ... ok
test_parent_parser_outlives_its_subparsers__single (test.test_pyexpat.ParentParserLifetimeTest.test_parent_parser_outlives_its_subparsers__single) ... ok
test_parse_again (test.test_pyexpat.ParseTest.test_parse_again) ... ok
test_parse_bytes (test.test_pyexpat.ParseTest.test_parse_bytes) ... ok
test_parse_file (test.test_pyexpat.ParseTest.test_parse_file) ... ok
test_parse_str (test.test_pyexpat.ParseTest.test_parse_str) ... ok
test (test.test_pyexpat.PositionTest.test) ... ok
test_getter_setter_round_trip (test.test_pyexpat.ReparseDeferralTest.test_getter_setter_round_trip) ... ok
test_reparse_deferral_disabled (test.test_pyexpat.ReparseDeferralTest.test_reparse_deferral_disabled) ... ok
test_reparse_deferral_enabled (test.test_pyexpat.ReparseDeferralTest.test_reparse_deferral_enabled) ... ok
test_buffer_text (test.test_pyexpat.SetAttributeTest.test_buffer_text) ... ok
test_invalid_attributes (test.test_pyexpat.SetAttributeTest.test_invalid_attributes) ... ok
test_namespace_prefixes (test.test_pyexpat.SetAttributeTest.test_namespace_prefixes) ... ok
test_ordered_attributes (test.test_pyexpat.SetAttributeTest.test_ordered_attributes) ... ok
test_specified_attributes (test.test_pyexpat.SetAttributeTest.test_specified_attributes) ... ok
test_parse_only_xml_data (test.test_pyexpat.sf1296433Test.test_parse_only_xml_data) ... ok
======================================================================
ERROR: test_set_activation_threshold__invalid_threshold_range (test.test_pyexpat.MemoryProtectionTest.test_set_activation_threshold__invalid_threshold_range)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 53, in <module>
module_from_spec(spec)
File "<frozen importlib._bootstrap>", line 813, in module_from_spec
File "<builtin>/frozen importlib._bootstrap_external", line 1293, in create_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
ImportError: /build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.pypy312-pp80-x86-linux-gnu.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 142, in compile_shared
output_filename = _compile_shared_distutils(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 60, in _compile_shared_distutils
from distutils.ccompiler import new_compiler
ModuleNotFoundError: No module named 'distutils'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/test_pyexpat.py", line 941, in test_set_activation_threshold__invalid_threshold_range
_testcapi = import_helper.import_module("_testcapi")
^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/test/support/import_helper.py", line 78, in import_module
return importlib.import_module(name)
^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib-python/3/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<builtin>/frozen importlib._bootstrap_external", line 999, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapi.py", line 61, in <module>
mod = _pypy_testcapi.compile_shared(csources, '_testcapi', thisdir)
^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 145, in compile_shared
output_filename = _compile_shared_ccdriver(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_pypy_testcapi.py", line 123, in _compile_shared_ccdriver
return _cc_compile_shared(source_paths, modulename, output_dir,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/pypy_tools/_cffi_compile.py", line 246, in compile_shared
out = build(ext, output_dir, compiler_verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/pypy_tools/_cffi_compile.py", line 216, in build
return _build_unix(ext, compiler_verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/pypy_tools/_cffi_compile.py", line 158, in _build_unix
_run(args, verbose)
File "/build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/pypy_tools/_cffi_compile.py", line 111, in _run
raise VerificationError(
cffi.VerificationError: In file included from /build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapimodule.c:25:
/build_dir/pypy-c-jit-linux-x86-32/build/include/pypy3.12/structmember.h:57:10: fatal error: pypy_structmember_decl.h: No such file or directory
57 | #include "pypy_structmember_decl.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
command failed (status 1): gcc -pthread -DNDEBUG -O2 -fPIC -I/build_dir/pypy-c-jit-linux-x86-32/build/include/pypy3.12 -Wimplicit-function-declaration -O0 -g3 -c /build_dir/pypy-c-jit-linux-x86-32/build/lib_pypy/_testcapimodule.c -o _testcapimodule.o
----------------------------------------------------------------------
Ran 57 tests in 0.179s
FAILED (errors=1, skipped=1)
0:00:00 load avg: 7.03 [1/1/1] test_pyexpat failed (1 error)
== Tests result: FAILURE ==
1 test failed:
test_pyexpat
Total duration: 408 ms
Total tests: run=57 skipped=1
Total test files: run=1/1 failed=1
Result: FAILURE
test test_pyexpat failed
builder: pypy-c-jit-linux-x86-32 build #8391+
test: lib-python/3/test/test_pyexpat.py::unmodified