]> granicus.if.org Git - python/commitdiff
This patch adds a testcase that demonstrates a problem
authorRonald Oussoren <ronaldoussoren@mac.com>
Mon, 19 Jul 2010 13:00:36 +0000 (13:00 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Mon, 19 Jul 2010 13:00:36 +0000 (13:00 +0000)
with the expansion of LDSHARED when accessing that value
through sysconfig.

The problem is probably caused by the 9189.

A fix will follow shortly.

Lib/test/test_sysconfig.py

index 672f355a18f40ed9f4cb05d4cd7dfcd5342b7a1d..428379c3c310b0a497a991ed68c659bd17b40785 100644 (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)