Skip to content

Please backport 88aad9b9f05 (lit googletest.py: Don't raise StopIteration in generator) to 10.x #45396

@llvmbot

Description

@llvmbot
Bugzilla Link 46051
Resolution FIXED
Resolved on Jun 16, 2020 14:45
Version trunk
OS Linux
Blocks #44654
Reporter LLVM Bugzilla Contributor
CC @zmodem,@tstellar
Fixed by commit(s) 88aad9b 756b482

Extended Description

This is needed to fix crashing tests with newer versions of Python. It seems to apply cleanly for me.

commit 88aad9b
Author: Hans Wennborg [email protected]
Date: 2020-04-30 15:03:22 +0200

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

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzilla

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions