mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-127146: Allow ignored keys to be missing in test_sysconfig (#135622)
Fixes the test on Emscripten where userbase can be missing.
This commit is contained in:
parent
7117002591
commit
28c71ee4b2
1 changed files with 2 additions and 2 deletions
|
@ -711,8 +711,8 @@ class TestSysConfig(unittest.TestCase, VirtualEnvironmentMixin):
|
|||
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