quaint-telephone-89068
01/01/2023, 2:11 PMStopIteration exceptions raised from within a coroutine is now translated to a RuntimeError.
https://docs.python.org/3/library/exceptions.html?highlight=stopiteration#StopIteration
Pants version
main
OS
Any
Additional info
#17901 fixed this for the pants.testutil.RuleRunner.run_rule_with_mocks() method.
Affects pants.engine.internals.selectors.native_engine_generator_send() method:
pants/src/python/pants/engine/internals/selectors.py
Lines 606 to 611 in </pantsbuild/pants/commit/df1c5b2418d9c62622b6039bb0fcc91b08f1dee4|df1c5b2>
It seems to me that the e.args may have been an implementation detail, as it is not mentioned in the docs for StopIteration.
pantsbuild/pantsuser
01/04/2023, 4:12 AM