]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109230: test_pyexpat no longer depends on the current directory (#109233)
authorVictor Stinner <vstinner@python.org>
Sun, 10 Sep 2023 22:16:59 +0000 (00:16 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Sep 2023 22:16:59 +0000 (22:16 +0000)
commite55aab95786e0e9fb36a9a1122d2d0fb3d2403cd
treea9730d7f93257c27d5c2c02ea31f9afd9131ddac
parentcbb3a6f8ada3d133c3ab9f9465b65067fce5bb42
gh-109230: test_pyexpat no longer depends on the current directory (#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.
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]