Skip to content

Commit 790ad65

Browse files
hlopkocompnerd
authored andcommitted
Make lit TestRunner.py work in Python 3
Summary: In Python3 SubstituteCaptures are no longer converted to String implicitly behind the scenes. Converting explicitly makes the TestRunner to work in Python3. Reviewers: gribozavr2, compnerd Reviewed By: gribozavr2 Subscribers: tbkka, delcypher, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D81361 (cherry picked from commit b49d47f)
1 parent a4f11ae commit 790ad65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/lit/TestRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def processLine(ln):
11631163
# short-lived, since the set of substitutions is fairly small, and
11641164
# since thrashing has such bad consequences, not bounding the cache
11651165
# seems reasonable.
1166-
ln = _caching_re_compile(a).sub(b, ln)
1166+
ln = _caching_re_compile(a).sub(str(b), ln)
11671167

11681168
# Strip the trailing newline and any extra whitespace.
11691169
return ln.strip()

0 commit comments

Comments
 (0)