mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-91670: Removes SO
config variable in sysconfig.py
(#91671)
* Removes SO config variable in sysconfig Per @warsaw in https://github.com/python/cpython/issues/63754, this was deprecated in Python 3.4 and was suggested for removal in Python 3.5. * Add NEWS * Update Misc/NEWS.d/next/Library/2022-04-18-15-23-24.gh-issue-91670.6eyChw.rst Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Barry Warsaw <barry@python.org> Co-authored-by: Éric <merwok@netwok.org>
This commit is contained in:
parent
2f0fc521f4
commit
0860b26a4f
4 changed files with 1 additions and 42 deletions
|
@ -463,19 +463,6 @@ class TestSysConfig(unittest.TestCase):
|
|||
srcdir2 = sysconfig.get_config_var('srcdir')
|
||||
self.assertEqual(srcdir, srcdir2)
|
||||
|
||||
@unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None,
|
||||
'EXT_SUFFIX required for this test')
|
||||
def test_SO_deprecation(self):
|
||||
self.assertWarns(DeprecationWarning,
|
||||
sysconfig.get_config_var, 'SO')
|
||||
|
||||
@unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None,
|
||||
'EXT_SUFFIX required for this test')
|
||||
def test_SO_value(self):
|
||||
with check_warnings(('', DeprecationWarning)):
|
||||
self.assertEqual(sysconfig.get_config_var('SO'),
|
||||
sysconfig.get_config_var('EXT_SUFFIX'))
|
||||
|
||||
@unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None,
|
||||
'EXT_SUFFIX required for this test')
|
||||
def test_EXT_SUFFIX_in_vars(self):
|
||||
|
@ -483,8 +470,6 @@ class TestSysConfig(unittest.TestCase):
|
|||
if not _imp.extension_suffixes():
|
||||
self.skipTest("stub loader has no suffixes")
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue