Skip to content

Commit dd724f6

Browse files
committed
build: find other .so files to clean between runs
The build/lib.macosx-13.3-x86_64-cpython-312/coverage/tracer.cpython-312-darwin.so file seems to cause VirtualenvTests to fail if it's carried over from 3.12.0a7 to 3.12.0a7+ built from source. Clean it out to prevent false failures.
1 parent 27087ff commit dd724f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

igor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import datetime
1313
import glob
1414
import inspect
15+
import itertools
1516
import os
1617
import platform
1718
import pprint
@@ -77,10 +78,11 @@ def do_remove_extension(*args):
7778
"-c",
7879
"import coverage; print(coverage.__file__)"
7980
], encoding="utf-8").strip())
81+
roots = [root]
8082
else:
81-
root = "coverage"
83+
roots = ["coverage", "build/*/coverage"]
8284

83-
for pattern in so_patterns:
85+
for root, pattern in itertools.product(roots, so_patterns):
8486
pattern = os.path.join(root, pattern.strip())
8587
if VERBOSITY:
8688
print(f"Searching for {pattern}")

0 commit comments

Comments
 (0)