summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2015-04-16 00:11:47 (GMT)
committerNed Deily <nad@acm.org>2015-04-16 00:11:47 (GMT)
commit3b8124884c3655b4cf2629d741b18c1a38181805 (patch)
treee783186567c2f18bbe7f5ec0f94d3f0341e12b7d /Lib/test/test_sysconfig.py
parent20416f7994d1efbca1158e549ec8ece5ac4dbb67 (diff)
downloadcpython-3b8124884c3655b4cf2629d741b18c1a38181805.zip
cpython-3b8124884c3655b4cf2629d741b18c1a38181805.tar.gz
cpython-3b8124884c3655b4cf2629d741b18c1a38181805.tar.bz2
Issues #22980, 23969: For OS X, use PEP 3149-style file names for extension
module binaries, with a platform triple of just "darwin", resulting in file names like: _ssl.cpython-35m-darwin.so rather than just _ssl.so as previously. Instead of attempting to encode differences in CPU architecture and OS X deployment targets in the file name as is done on other platforms, these continue to be managed by the use of Apple multi-architecture ("fat") files, by the system dynamic loader, and by logic in higher-levels like sysconfig.get_platform() and pip.
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index cc70422..c0f27a6 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -404,6 +404,10 @@ class TestSysConfig(unittest.TestCase):
else: # 8 byte pointer size
self.assertTrue(suffix.endswith('x86_64-linux-gnu.so'), suffix)
+ @unittest.skipUnless(sys.platform == 'darwin', 'OS X-specific test')
+ def test_osx_ext_suffix(self):
+ suffix = sysconfig.get_config_var('EXT_SUFFIX')
+ self.assertTrue(suffix.endswith('-darwin.so'), suffix)
class MakefileTests(unittest.TestCase):