]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 12 Sep 2023 14:03:47 +0000 (07:03 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Sep 2023 14:03:47 +0000 (16:03 +0200)
commitdf64210ad0d65e82449bbff2c5125764d49e5073
tree49f658e7397bcaecba314628315547cf7048ea25
parentb3613815d4550a611e67a9c97f616c97124b6495
[3.12] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) (#109241)

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]