mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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.
This commit is contained in:
parent
599b65deca
commit
e8d252dbcb
2 changed files with 32 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue