[all-commits] [llvm/llvm-project] 88aad9: lit googletest.py: Don't raise StopIteration in ge...

Hans via All-commits all-commits at lists.llvm.org
Thu Apr 30 09:16:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 88aad9b9f05702585eb823d0188996f4cf62070a
      https://github.com/llvm/llvm-project/commit/88aad9b9f05702585eb823d0188996f4cf62070a
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2020-04-30 (Thu, 30 Apr 2020)

  Changed paths:
    M llvm/utils/lit/lit/formats/googletest.py

  Log Message:
  -----------
  lit googletest.py: Don't raise StopIteration in generator

The intention here seems to be to end the generator function, but with
modern Python, raising StopIteration causes a runtime error
(https://www.python.org/dev/peps/pep-0479/).

Differential revision: https://reviews.llvm.org/D79169




More information about the All-commits mailing list