mirror of
https://github.com/python/cpython.git
synced 2026-01-04 22:42:14 +00:00
[3.14] gh-127146: Allow ignored keys to be missing in test_sysconfig (GH-135622) (#135650)
Fixes the test on Emscripten where userbase can be missing.
(cherry picked from commit 28c71ee4b2)
Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
This commit is contained in:
parent
2c29ee835a
commit
77e2ac14c6
1 changed files with 2 additions and 2 deletions
|
|
@ -712,8 +712,8 @@ def test_sysconfigdata_json(self):
|
|||
ignore_keys |= {'prefix', 'exec_prefix', 'base', 'platbase', 'installed_base', 'installed_platbase'}
|
||||
|
||||
for key in ignore_keys:
|
||||
json_config_vars.pop(key)
|
||||
system_config_vars.pop(key)
|
||||
json_config_vars.pop(key, None)
|
||||
system_config_vars.pop(key, None)
|
||||
|
||||
self.assertEqual(system_config_vars, json_config_vars)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue