Added type hints to additional tests by radarhere · Pull Request #7846 · python-pillow/Pillow
The CI is failing for Ubuntu with all versions (except PyPy). For example:
ERROR Tests/test_image_fromqimage.py::test_sanity_1 - Failed: fixture function has more than one 'yield': @pytest.fixture def test_images() -> Generator[Image.Image, None, None]: ims = [ hopper(), Image.open("Tests/images/transparent.png"), Image.open("Tests/images/7x13.png"), ] try: yield from ims finally: for im in ims: im.close() /home/runner/work/Pillow/Pillow/Tests/test_image_fromqimage.py:21 FAILED Tests/test_image_fromqimage.py::test_sanity_1 - TypeError: 'PpmImageFile' object is not iterable !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 2 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!