summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/tests
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-07-23 09:43:17 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-07-23 09:43:17 (GMT)
commite8d252dbcbafc0113c0b9bf6b13a72af5f0ee848 (patch)
treec42cd2b2a630bb2fbd494bd01bbbb261de59c1cd /Lib/distutils/tests
parent599b65deca618fb7d6ff1e7955ab7aac66fa6645 (diff)
downloadcpython-e8d252dbcbafc0113c0b9bf6b13a72af5f0ee848.zip
cpython-e8d252dbcbafc0113c0b9bf6b13a72af5f0ee848.tar.gz
cpython-e8d252dbcbafc0113c0b9bf6b13a72af5f0ee848.tar.bz2
Ensure that the Makefile variable expansion
in distutils.sysconfig matches that in the toplevel sysconfig module. Without this patch universal builds on OSX are broken. Als add a test that checks that the two version of get_config_vars agree on important values.
Diffstat (limited to 'Lib/distutils/tests')
-rw-r--r--Lib/distutils/tests/test_sysconfig.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_sysconfig.py b/Lib/distutils/tests/test_sysconfig.py
index edc755e..0167e0f 100644
--- a/Lib/distutils/tests/test_sysconfig.py
+++ b/Lib/distutils/tests/test_sysconfig.py
@@ -93,6 +93,15 @@ class SysconfigTestCase(support.EnvironGuard,
'OTHER': 'foo'})
+ def test_sysconfig_module(self):
+ import sysconfig as global_sysconfig
+ self.assertEquals(global_sysconfig.get_config_var('CFLAGS'), sysconfig.get_config_var('CFLAGS'))
+ self.assertEquals(global_sysconfig.get_config_var('LDFLAGS'), sysconfig.get_config_var('LDFLAGS'))
+ self.assertEquals(global_sysconfig.get_config_var('LDSHARED'),sysconfig.get_config_var('LDSHARED'))
+ self.assertEquals(global_sysconfig.get_config_var('CC'), sysconfig.get_config_var('CC'))
+
+
+
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(SysconfigTestCase))