]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Sep 2023 22:46:47 +0000 (15:46 -0700)
committerGitHub <noreply@github.com>
Sun, 10 Sep 2023 22:46:47 +0000 (22:46 +0000)
commita7e80fb62872127c23ada5cd80fb1251ba19fbd2
tree10fd72a513e1eeb63e87388870259603124e4247
parentcef4951116744d140dae4e4c12738a1cb99a676e
[3.11] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) (#109242)

gh-109230: test_pyexpat no longer depends on the current directory (GH-109233)

Fix test_pyexpat.test_exception(): it can now be run from a directory
different than Python source code directory. Before, the test failed
in this case.

Skip the test if Modules/pyexpat.c source is not available. Skip also
the test on Python implementations other than CPython.
(cherry picked from commit e55aab95786e0e9fb36a9a1122d2d0fb3d2403cd)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_pyexpat.py
Misc/NEWS.d/next/Tests/2023-09-10-19-59-57.gh-issue-109230.SRNLFQ.rst [new file with mode: 0644]