summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-07-19 13:00:36 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-07-19 13:00:36 (GMT)
commitf4ebe2e8a0accd8ac2e47619e6d58a6171dd650b (patch)
tree6c4371699d631141c04ee8e98a02f71edc859ab6 /Lib/test/test_sysconfig.py
parent36d2e67db9a53175accad32454af6316d6b12b82 (diff)
downloadcpython-f4ebe2e8a0accd8ac2e47619e6d58a6171dd650b.zip
cpython-f4ebe2e8a0accd8ac2e47619e6d58a6171dd650b.tar.gz
cpython-f4ebe2e8a0accd8ac2e47619e6d58a6171dd650b.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 672f355..428379c 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)