Skip to content

test_pyexpat: test_exception() fails on Ubuntu and macOS jobs on GitHub Actions #109230

@vstinner

Description

@vstinner
FAIL: test_exception (test.test_pyexpat.HandlerExceptionTest.test_exception) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_pyexpat.py", line 452, in test_exception parser.Parse(b"<a><b><c/></b></a>", True) File "../cpython-ro-srcdir/Modules/pyexpat.c", line 421, in StartElement File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_pyexpat.py", line 442, in StartElementHandler raise RuntimeError(name) RuntimeError: a During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/runner/work/cpython/cpython-ro-srcdir/Lib/test/test_pyexpat.py", line 472, in test_exception self.assertIn('call_with_frame("StartElement"', entries[1][3]) AssertionError: 'call_with_frame("StartElement"' not found in '' 

Comparison of Ubuntu logs:

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions