Просмотр исходного кода

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

Geoff Romer 4 лет назад
Родитель
Сommit
fbf2116d35
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      executable_semantics/update_checks.py

+ 2 - 0
executable_semantics/update_checks.py

@@ -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.")