[Python-checkins] r82967 - python/branches/py3k/Lib/test/test_sysconfig.py

ronald.oussoren python-checkins at python.org
Mon Jul 19 15:00:36 CEST 2010


Author: ronald.oussoren
Date: Mon Jul 19 15:00:36 2010
New Revision: 82967

Log:
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.


Modified:
   python/branches/py3k/Lib/test/test_sysconfig.py

Modified: python/branches/py3k/Lib/test/test_sysconfig.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sysconfig.py	(original)
+++ python/branches/py3k/Lib/test/test_sysconfig.py	Mon Jul 19 15:00:36 2010
@@ -277,6 +277,12 @@
             _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)


More information about the Python-checkins mailing list