[Differential] D81361: Make lit TestRunner.py work in Python 3

Marcel Hlopko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 02:44:20 PDT 2020


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb49d47f6a0f5: Make lit TestRunner.py work in Python 3 (authored by hlopko).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81361/new/

https://reviews.llvm.org/D81361

Files:
  llvm/utils/lit/lit/TestRunner.py


Index: llvm/utils/lit/lit/TestRunner.py
===================================================================
--- llvm/utils/lit/lit/TestRunner.py
+++ llvm/utils/lit/lit/TestRunner.py
@@ -1171,7 +1171,7 @@
             # short-lived, since the set of substitutions is fairly small, and
             # since thrashing has such bad consequences, not bounding the cache
             # seems reasonable.
-            ln = _caching_re_compile(a).sub(b, ln)
+            ln = _caching_re_compile(a).sub(str(b), ln)
 
         # Strip the trailing newline and any extra whitespace.
         return ln.strip()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81361.279078.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200722/fa925fcc/attachment.bin>


More information about the llvm-commits mailing list