Skip to content

Commit 91cb327

Browse files
committed
Update more tests to match the new expectation.
1 parent 0136c37 commit 91cb327

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

distutils/tests/test_unixccompiler.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ def gcv(v):
153153
return 'yes'
154154

155155
sysconfig.get_config_var = gcv
156-
assert self.cc.rpath_foo() == '-Wl,--enable-new-dtags,-R/foo'
156+
assert self.cc.rpath_foo() == [
157+
'-Wl,--enable-new-dtags',
158+
'-Wl,-rpath,/foo',
159+
]
157160

158161
def gcv(v):
159162
if v == 'CC':
@@ -162,7 +165,10 @@ def gcv(v):
162165
return 'yes'
163166

164167
sysconfig.get_config_var = gcv
165-
assert self.cc.rpath_foo() == '-Wl,--enable-new-dtags,-R/foo'
168+
assert self.cc.rpath_foo() == [
169+
'-Wl,--enable-new-dtags',
170+
'-Wl,-rpath,/foo',
171+
]
166172

167173
# GCC non-GNULD
168174
sys.platform = 'bar'
@@ -202,7 +208,10 @@ def gcv(v):
202208
return 'yes'
203209

204210
sysconfig.get_config_var = gcv
205-
assert self.cc.rpath_foo() == '-Wl,--enable-new-dtags,-R/foo'
211+
assert self.cc.rpath_foo() == [
212+
'-Wl,--enable-new-dtags',
213+
'-Wl,-rpath,/foo',
214+
]
206215

207216
# non-GCC non-GNULD
208217
sys.platform = 'bar'

0 commit comments

Comments
 (0)