From: Filipe Laíns 🇵🇸 Date: Wed, 2 Apr 2025 05:44:43 +0000 (+0100) Subject: GH-128055: fix test_sysconfigdata_json outside the builddir (#128070) X-Git-Tag: v3.14.0a7~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7980ba233bcbdb811e96bd5003c7d51a4e25155;p=thirdparty%2FPython%2Fcpython.git GH-128055: fix test_sysconfigdata_json outside the builddir (#128070) --- diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 3738914cf17d..cc11eade2e34 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -643,7 +643,8 @@ class TestSysConfig(unittest.TestCase, VirtualEnvironmentMixin): system_config_vars = get_config_vars() - ignore_keys = set() + # Keys dependent on uncontrollable external context + ignore_keys = {'userbase'} # Keys dependent on Python being run outside the build directrory if sysconfig.is_python_build(): ignore_keys |= {'srcdir'} diff --git a/Misc/NEWS.d/next/Library/2024-12-18-15-51-09.gh-issue-128055.0c_Noq.rst b/Misc/NEWS.d/next/Library/2024-12-18-15-51-09.gh-issue-128055.0c_Noq.rst new file mode 100644 index 000000000000..4f7be59d5b63 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-12-18-15-51-09.gh-issue-128055.0c_Noq.rst @@ -0,0 +1,2 @@ +Fix ``test.test_sysconfig.test_sysconfigdata_json`` when running outside +the build directory (eg. after installing).