diff options
| author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-09 08:14:20 (GMT) |
|---|---|---|
| committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-09 08:14:20 (GMT) |
| commit | bed26a3ce371d5244898e1d160a3ca566aec4486 (patch) | |
| tree | ead8771e511d3cc67813dd06fa8d1dc7e9a9e1bf /Lib/distutils/tests/test_unixccompiler.py | |
| parent | 7f6d0834f987f1f1599347131de4f5e9e8cb4864 (diff) | |
| download | cpython-bed26a3ce371d5244898e1d160a3ca566aec4486.zip cpython-bed26a3ce371d5244898e1d160a3ca566aec4486.tar.gz cpython-bed26a3ce371d5244898e1d160a3ca566aec4486.tar.bz2 | |
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 96f5454..1b7dd4c 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' |
