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:
Hood Chatham 2025-06-17 19:51:46 -07:00 committed by GitHub
parent 7117002591
commit 28c71ee4b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)