8000 gh-127146: Allow ignored keys to be missing in test_sysconfig (GH-135… · miss-islington/cpython@bb84f0c · GitHub
[go: up one dir, main page]

Skip to content

Commit bb84f0c

Browse files
hoodmanemiss-islington
authored andcommitted
pythongh-127146: Allow ignored keys to be missing in test_sysconfig (pythonGH-135622)
Fixes the test on Emscripten where userbase can be missing. (cherry picked from commit 28c71ee) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent 2c29ee8 commit bb84f0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_sysconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ def test_sysconfigdata_json(self):
712712
ignore_keys |= {'prefix', 'exec_prefix', 'base', 'platbase', 'installed_base', 'installed_platbase'}
713713

714714
for key in ignore_keys:
715-
json_config_vars.pop(key)
716-
system_config_vars.pop(key)
715+
json_config_vars.pop(key, None)
716+
system_config_vars.pop(key, None)
717717

718718
self.assertEqual(system_config_vars, json_config_vars)
719719

0 commit comments

Comments
 (0)
0