From: Ronald Oussoren Date: Mon, 19 Jul 2010 13:00:36 +0000 (+0000) Subject: This patch adds a testcase that demonstrates a problem X-Git-Tag: v3.2a1~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4ebe2e8a0accd8ac2e47619e6d58a6171dd650b;p=python 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. --- diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py index 672f355a18..428379c3c3 100644 --- a/Lib/test/test_sysconfig.py +++ b/Lib/test/test_sysconfig.py @@ -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)