Handle line number changes in update_checks.py (#873)

This commit is contained in:
Geoff Romer authored and GitHub committed 2021-10-05 16:09:03 -07:00
1 parent d5eb9a72f9
commit fbf2116d35
1 file changed
+2
+2
View File
@@ -85,6 +85,8 @@ def _update_checks():
with futures.ThreadPoolExecutor() as exec:
# list() iterates to propagate exceptions.
list(exec.map(_update_check, tests))
# Run again, because the previous run may have changed line numbers.
list(exec.map(_update_check, tests))
# Each update call indicates progress with a dot without a newline, so put a
# newline to wrap.
print("\nUpdated lit tests.")