mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
GH-128055: fix test_sysconfigdata_json outside the builddir (#128070)
This commit is contained in:
parent
3a8cefba0b
commit
e7980ba233
2 changed files with 4 additions and 1 deletions
|
|
@ -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'}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
Fix ``test.test_sysconfig.test_sysconfigdata_json`` when running outside
|
||||
the build directory (eg. after installing).
|
||||
Loading…
Add table
Add a link
Reference in a new issue