diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-07 17:56:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 17:56:44 (GMT) |
commit | e9a6dcdefabb6c19074566f4ee0e02daaf57be18 (patch) | |
tree | bc0374685175f4cc2a6b28ea5f45884b976e3206 /Lib/test/test_sysconfig.py | |
parent | facca72eae3c0b59b4e89bab81c936dff10fb58a (diff) | |
download | cpython-e9a6dcdefabb6c19074566f4ee0e02daaf57be18.zip cpython-e9a6dcdefabb6c19074566f4ee0e02daaf57be18.tar.gz cpython-e9a6dcdefabb6c19074566f4ee0e02daaf57be18.tar.bz2 |
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
(cherry picked from commit c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6)
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r-- | Lib/test/test_sysconfig.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 44e44bf..0ca5c93 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -358,10 +358,12 @@ class TestSysConfig(unittest.TestCase): @unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None, 'EXT_SUFFIX required for this test') - def test_SO_in_vars(self): + def test_EXT_SUFFIX_in_vars(self): + import _imp vars = sysconfig.get_config_vars() self.assertIsNotNone(vars['SO']) self.assertEqual(vars['SO'], vars['EXT_SUFFIX']) + self.assertEqual(vars['EXT_SUFFIX'], _imp.extension_suffixes()[0]) @unittest.skipUnless(sys.platform == 'linux' and hasattr(sys.implementation, '_multiarch'), |