diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-09 09:07:13 (GMT) |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-09 09:07:13 (GMT) |
| commit | ef8a8beab140ab41f06993ade1117a87017e3d2c (patch) | |
| tree | 28e2b9a4c45bbb3f5224f17bb08cba8ce8fe765f /Lib/distutils/tests/test_unixccompiler.py | |
| parent | 9739b05ab1d6c0e2a2dc8d2ff1d0f3ec53aad4a1 (diff) | |
| download | cpython-ef8a8beab140ab41f06993ade1117a87017e3d2c.zip cpython-ef8a8beab140ab41f06993ade1117a87017e3d2c.tar.gz cpython-ef8a8beab140ab41f06993ade1117a87017e3d2c.tar.bz2 | |
Merged revisions 74730 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r74730 | tarek.ziade | 2009-09-09 10:48:07 +0200 (Wed, 09 Sep 2009) | 9 lines
Merged revisions 74728 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r74728 | tarek.ziade | 2009-09-09 10:14:20 +0200 (Wed, 09 Sep 2009) | 1 line
Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler
........
................
Diffstat (limited to 'Lib/distutils/tests/test_unixccompiler.py')
| -rw-r--r-- | Lib/distutils/tests/test_unixccompiler.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/Lib/distutils/tests/test_unixccompiler.py b/Lib/distutils/tests/test_unixccompiler.py index 94e9edf..be2df5c 100644 --- a/Lib/distutils/tests/test_unixccompiler.py +++ b/Lib/distutils/tests/test_unixccompiler.py @@ -36,7 +36,23 @@ class UnixCCompilerTestCase(unittest.TestCase): # hp-ux sys.platform = 'hp-ux' - self.assertEqual(self.cc.rpath_foo(), '+s -L/foo') + old_gcv = sysconfig.get_config_var + def gcv(v): + return 'xxx' + sysconfig.get_config_var = gcv + self.assertEqual(self.cc.rpath_foo(), ['+s', '-L/foo']) + + def gcv(v): + return 'gcc' + sysconfig.get_config_var = gcv + self.assertEqual(self.cc.rpath_foo(), ['-Wl,+s', '-L/foo']) + + def gcv(v): + return 'g++' + sysconfig.get_config_var = gcv + self.assertEqual(self.cc.rpath_foo(), ['-Wl,+s', '-L/foo']) + + sysconfig.get_config_var = old_gcv # irix646 sys.platform = 'irix646' |
