mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
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 ........
This commit is contained in:
parent
46ab5d0951
commit
165581cb36
3 changed files with 24 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue