This patch adds a testcase that demonstrates a problem

with the expansion of LDSHARED when accessing that value
through sysconfig.

The problem is probably caused by the 9189.

A fix will follow shortly.
This commit is contained in:
Ronald Oussoren 2010-07-19 13:00:36 +00:00
parent 36d2e67db9
commit f4ebe2e8a0
1 changed files with 6 additions and 0 deletions

View File

@ -277,6 +277,12 @@ class TestSysConfig(unittest.TestCase):
_main()
self.assertTrue(len(output.getvalue().split('\n')) > 0)
def test_ldshared_value(self):
ldflags = sysconfig.get_config_var('LDFLAGS')
ldshared = sysconfig.get_config_var('LDSHARED')
self.assertIn(ldflags, ldshared)
def test_main():
run_unittest(TestSysConfig)