https://github.com/python/cpython/commit/77e2ac14c626ff64ee90e73ac29dc2a60786335e commit: 77e2ac14c626ff64ee90e73ac29dc2a60786335e branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: freakboy3742 <[email protected]> date: 2025-06-18T03:17:22Z summary:
[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 28c71ee4b2eb66983b78018896ca56892580816a) Co-authored-by: Hood Chatham <[email protected]> files: M Lib/test/test_sysconfig.py diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index d30f69ded6643a..7af3144d69197e 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
