8000 GH-128055: fix test_sysconfigdata_json outside the builddir (#128070) · python/cpython@e7980ba · GitHub
[go: up one dir, main page]

Skip to content

Commit e7980ba

Browse files
authored
GH-128055: fix test_sysconfigdata_json outside the builddir (#128070)
1 parent 3a8cefb commit e7980ba

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/test/test_sysconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,8 @@ def test_sysconfigdata_json(self):
643643

644644
system_config_vars = get_config_vars()
645645

646-
ignore_keys = set()
646+
# Keys dependent on uncontrollable external context
647+
ignore_keys = {'userbase'}
647648
# Keys dependent on Python being run outside the build directrory
648649
if sysconfig.is_python_build():
649650
ignore_keys |= {'srcdir'}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix ``test.test_sysconfig.test_sysconfigdata_json`` when running outside
2+
the build directory (eg. after installing).

0 commit comments

Comments
 (0)
0