Skip to content

Commit 77e2ac1

Browse files
[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 28c71ee) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent 2c29ee8 commit 77e2ac1

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy