Replace raise StopIteration with return - adhere to Pep 479 #2160
Closed
Description
As per pytest-dev/pluggy#38 and pep 479, it seems that some pluggy
hook wrappers implemented in pytest
are still using the soon to be deprecated raise StopIteration
mechanism to signal early generator termination.
An example would be pytest_pycollect_makeitem
.
As indicated in the pep all such usage should be changed to simple return
s in Py3.6+.