GH-128055: fix test_sysconfigdata_json outside the builddir (#128070)

This commit is contained in:
Filipe Laíns 🇵🇸 2025-04-02 06:44:43 +01:00 committed by GitHub
parent 3a8cefba0b
commit e7980ba233
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -643,7 +643,8 @@ def test_sysconfigdata_json(self):
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'}

View file

@ -0,0 +1,2 @@
Fix ``test.test_sysconfig.test_sysconfigdata_json`` when running outside
the build directory (eg. after installing).