Skip to content

Commit ac7da44

Browse files
committed
Add tests on spaces
1 parent e17c429 commit ac7da44

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎Lib/test/test_sysconfig.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,14 @@ def test_parse_config_h(self):
791791
#define IPHONEOS_DEPLOYMENT_TARGET "13.0"
792792
#define MACOSX_DEPLOYMENT_TARGET 10
793793
794+
// Spaces are tolerated after the name, not before
795+
#define SPACES_AFTER 1
796+
#define IGNORED_SPACES_BEFORE 1
797+
794798
// Ignore macro without value
795799
#define IGNORE_NO_VALUE
796800
797-
// Ignore macro with an invalid name
801+
// Ignore macros with an invalid name
798802
#define _PRIVATE_IGNORED 1
799803
#define aLOWER_IGNORED 1
800804
#define 123IGNORED 1
@@ -825,6 +829,7 @@ def test_parse_config_h(self):
825829
'ANDROID_API_LEVEL': 0,
826830
'IPHONEOS_DEPLOYMENT_TARGET': '13.0',
827831
'MACOSX_DEPLOYMENT_TARGET': '10', # str, not int
832+
'SPACES_AFTER': 1,
828833
}
829834
self.assertEqual(vars, expected)
830835

0 commit comments

Comments
 (0)