summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-22 00:17:34 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-22 00:17:34 (GMT)
commit35915876a6cfb81ec53425de8761f604de4fcd4f (patch)
tree65406d21d298667d8f5872be50b7fc2d4048d4b1 /Lib/test
parent5f8b0f5c59f273c195fb20e18d1847b868288b64 (diff)
parent99fc416b238a486bb9735e36cd374bf00d4af0c8 (diff)
downloadcpython-35915876a6cfb81ec53425de8761f604de4fcd4f.zip
cpython-35915876a6cfb81ec53425de8761f604de4fcd4f.tar.gz
cpython-35915876a6cfb81ec53425de8761f604de4fcd4f.tar.bz2
merge
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sysconfig.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 2968604..5bc3f32 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -369,6 +369,25 @@ class TestSysConfig(unittest.TestCase):
os.chdir(cwd)
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):
+ 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_SO_in_vars(self):
+ vars = sysconfig.get_config_vars()
+ self.assertIsNotNone(vars['SO'])
+ self.assertEqual(vars['SO'], vars['EXT_SUFFIX'])
+
class MakefileTests(unittest.TestCase):