summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-12-07 17:33:20 (GMT)
committerGitHub <noreply@github.com>2020-12-07 17:33:20 (GMT)
commitc0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6 (patch)
treedbe97d3d7fa6c871765251fd8725a61869cdb619 /Lib/test/test_sysconfig.py
parent0ef96c2b2a291c9d2d9c0ba42bbc1900a21e65f3 (diff)
downloadcpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.zip
cpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.tar.gz
cpython-c0afb7fa0ebd1c0e95c0760bbe75a99a8dd12ea6.tar.bz2
bpo-39825: Fixes sysconfig.get_config_var('EXT_SUFFIX') on Windows to match distutils (GH-22088)
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index d07d28d..352dbde 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -360,10 +360,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'),