Skip to content

Commit f36c496

Browse files
committed
test_sysconfigdata_json: Allow ignored sysconfig keys to be unset
1 parent 3d49b34 commit f36c496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_sysconfig.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ def test_sysconfigdata_json(self):
659659
ignore_keys |= {'prefix', 'exec_prefix', 'base', 'platbase', 'installed_base', 'installed_platbase'}
660660

661661
for key in ignore_keys:
662-
json_config_vars.pop(key)
663-
system_config_vars.pop(key)
662+
json_config_vars.pop(key, None)
663+
system_config_vars.pop(key, None)
664664

665665
self.assertEqual(system_config_vars, json_config_vars)
666666

0 commit comments

Comments
 (0)