Skip to content

Commit feffa0f

Browse files
committed
Ignore projectbase and srcdir keys in test
Signed-off-by: Filipe Laíns <[email protected]>
1 parent 2f5aa35 commit feffa0f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Lib/test/test_sysconfig.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,14 @@ def test_sysconfigdata_json(self):
644644
with open(json_data_path) as f:
645645
json_config_vars = json.load(f)
646646

647-
self.assertEqual(get_config_vars(), json_config_vars)
647+
system_config_vars = get_config_vars()
648+
649+
# Ignore keys in the check
650+
for key in ('projectbase', 'srcdir'):
651+
json_config_vars.pop(key)
652+
system_config_vars.pop(key)
653+
654+
self.assertEqual(system_config_vars, json_config_vars)
648655

649656

650657
class MakefileTests(unittest.TestCase):

0 commit comments

Comments
 (0)