Skip to content

Commit 1f1171a

Browse files
committed
test
1 parent 9924b97 commit 1f1171a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/auditwheel/repair.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,17 @@ def _inner_replace(
127127
itertools.chain(copy_works.values(), replace_works.values())
128128
)
129129
)
130+
replace_works.clear()
130131
for _, path in soname_map.values():
131132
needed = elf_read_dt_needed(path)
132133
replacements = []
133134
for n in needed:
134135
if n in soname_map:
135136
replacements.append((n, soname_map[n][0]))
136137
if replacements:
137-
pool.submit(patcher.replace_needed, path, *replacements)
138+
replace_works[path] = pool.submit(patcher.replace_needed, path, *replacements)
138139

140+
assert all(f.exception() is None for f in as_completed(replace_works.values()))
139141
if update_tags:
140142
ctx.out_wheel = add_platforms(ctx, abis, get_replace_platforms(abis[0]))
141143

tests/integration/test_manylinux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def assert_show_output(
370370
assert expected_match, f"No match for tag {expected_tag}"
371371
expected_glibc = (int(expected_match["major"]), int(expected_match["minor"]))
372372
actual_match = TAG_RE.match(match["tag"])
373-
assert actual_match, f"No match for tag {match['tag']}"
373+
assert actual_match, f"No match for tag {match['tag']}, output={output}"
374374
actual_glibc = (int(actual_match["major"]), int(actual_match["minor"]))
375375
assert expected_match["arch"] == actual_match["arch"]
376376
assert actual_glibc <= expected_glibc

0 commit comments

Comments
 (0)