Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.2.0: pytest errors #5526

Closed
kloczek opened this issue Jun 7, 2021 · 20 comments
Closed

8.2.0: pytest errors #5526

kloczek opened this issue Jun 7, 2021 · 20 comments
Labels

Comments

@kloczek
Copy link

kloczek commented Jun 7, 2021

I'm running pytest with quite long list of pytest extensions so some of those errors and warnings are results of using those extensions so as you are using tox which is causing that pytest is executet in env of only exacxt modules you may never see output like below.
It would be good to review what pytest shows in such env

+ /usr/bin/python3 -Bm pytest -ra

=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Using --randomly-seed=2682854423
rootdir: /home/tkloczko/rpmbuild/BUILD/Pillow-8.2.0, configfile: setup.cfg, testpaths: Tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, randomly-3.8.0, pyfakefs-4.5.0, hypothesis-6.13.14
collected 2699 items / 1 skipped / 2698 selected

Tests/test_pdfparser.py ....                                                                                                                                         [  0%]
Tests/test_image_getpalette.py .                                                                                                                                     [  0%]
Tests/test_imagesequence.py ........                                                                                                                                 [  0%]
Tests/test_image_quantize.py ........                                                                                                                                [  0%]
Tests/test_000_sanity.py .                                                                                                                                           [  0%]
Tests/test_file_eps.py F.F.FFFF..FF.F.FF                                                                                                                             [  1%]
Tests/test_image_load.py .....                                                                                                                                       [  1%]
Tests/test_file_pixar.py ..                                                                                                                                          [  1%]
Tests/test_file_pdf.py .............                                                                                                                                 [  2%]
Tests/test_image_copy.py ..                                                                                                                                          [  2%]
Tests/test_file_wmf.py .....                                                                                                                                         [  2%]
Tests/test_file_container.py ..........                                                                                                                              [  2%]
Tests/test_image_getcolors.py ..                                                                                                                                     [  2%]
Tests/test_image_tobytes.py .                                                                                                                                        [  2%]
Tests/test_file_palm.py .x..                                                                                                                                         [  3%]
Tests/test_map.py ...                                                                                                                                                [  3%]
Tests/test_color_lut.py ..........................                                                                                                                   [  4%]
Tests/test_file_tar.py ....                                                                                                                                          [  4%]
Tests/test_image_crop.py ......                                                                                                                                      [  4%]
Tests/test_qt_image_qapplication.py s                                                                                                                                [  4%]
Tests/test_image_thumbnail.py ........                                                                                                                               [  4%]
Tests/test_file_dcx.py .........                                                                                                                                     [  5%]
Tests/test_imagefont.py ............................................................................................................................................ [ 10%]
.................                                                                                                                                                    [ 11%]
Tests/test_image_getprojection.py .                                                                                                                                  [ 11%]
Tests/test_file_sgi.py ..........                                                                                                                                    [ 11%]
Tests/test_file_libtiff.py .................................................................                                                                         [ 13%]
Tests/test_image_entropy.py .                                                                                                                                        [ 13%]
Tests/test_binary.py ...                                                                                                                                             [ 13%]
Tests/test_image_rotate.py ..............                                                                                                                            [ 14%]
Tests/test_image_point.py ....                                                                                                                                       [ 14%]
Tests/test_file_im.py ............                                                                                                                                   [ 15%]
Tests/test_lib_pack.py ....................................                                                                                                          [ 16%]
Tests/test_file_webp.py .............                                                                                                                                [ 16%]
Tests/test_file_blp.py ..........                                                                                                                                    [ 17%]
Tests/test_file_ppm.py .......                                                                                                                                       [ 17%]
Tests/test_image_getim.py .                                                                                                                                          [ 17%]
Tests/test_imagepalette.py ...........                                                                                                                               [ 17%]
Tests/test_file_mpo.py ..................                                                                                                                            [ 18%]
Tests/test_file_webp_alpha.py ....                                                                                                                                   [ 18%]
Tests/test_file_tiff.py s......................................s................                                                                                     [ 20%]
Tests/test_file_fli.py ............                                                                                                                                  [ 21%]
Tests/test_file_webp_animated.py ......                                                                                                                              [ 21%]
Tests/test_main.py .                                                                                                                                                 [ 21%]
Tests/test_file_apng.py ....................                                                                                                                         [ 22%]
Tests/test_core_resources.py ..............                                                                                                                          [ 22%]
Tests/test_imagedraw2.py ................                                                                                                                            [ 23%]
Tests/test_file_ico.py .........                                                                                                                                     [ 23%]
Tests/test_image_putdata.py .......                                                                                                                                  [ 24%]
Tests/test_file_jpeg2k.py .............................                                                                                                              [ 25%]
Tests/test_image_convert.py ................                                                                                                                         [ 25%]
Tests/test_image_filter.py .........                                                                                                                                 [ 26%]
Tests/test_imagegrab.py ss.sss.                                                                                                                                      [ 26%]
Tests/test_file_sun.py .s.                                                                                                                                           [ 26%]
Tests/test_image_reduce.py ............                                                                                                                              [ 26%]
Tests/test_image_access.py .............................s...                                                                                                         [ 28%]
Tests/test_file_jpeg.py s.............................................................                                                                               [ 30%]
Tests/test_file_psd.py .................                                                                                                                             [ 30%]
Tests/test_lib_image.py .                                                                                                                                            [ 31%]
Tests/test_imageops_usm.py .....                                                                                                                                     [ 31%]
Tests/test_tiff_crashes.py ....s......s...                                                                                                                           [ 31%]
Tests/test_image_fromqimage.py sssss                                                                                                                                 [ 31%]
Tests/test_image_putalpha.py ...                                                                                                                                     [ 32%]
Tests/test_imagecms.py ............................                                                                                                                  [ 33%]
Tests/test_imageops.py ...................                                                                                                                           [ 33%]
Tests/test_file_png.py .................................................                                                                                             [ 35%]
Tests/test_imageenhance.py ...                                                                                                                                       [ 35%]
Tests/test_image_getextrema.py ..                                                                                                                                    [ 35%]
Tests/test_imagecolor.py ....                                                                                                                                        [ 35%]
Tests/test_decompression_bomb.py .....xF..                                                                                                                           [ 36%]
Tests/test_imagemath.py ......................                                                                                                                       [ 37%]
Tests/test_image_frombytes.py .                                                                                                                                      [ 37%]
Tests/test_font_leaks.py ..                                                                                                                                          [ 37%]
Tests/test_image_histogram.py .                                                                                                                                      [ 37%]
Tests/test_file_pcd.py .                                                                                                                                             [ 37%]
Tests/test_file_xvthumb.py ...                                                                                                                                       [ 37%]
Tests/test_image.py ...................................................................                                                                              [ 39%]
Tests/test_imagemorph.py ..................                                                                                                                          [ 40%]
Tests/test_image_split.py ...                                                                                                                                        [ 40%]
Tests/test_file_dds.py ..............                                                                                                                                [ 41%]
Tests/test_file_msp.py .s....s                                                                                                                                       [ 41%]
Tests/test_file_gribstub.py ....                                                                                                                                     [ 41%]
Tests/test_file_icns.py s.s.....s.                                                                                                                                   [ 41%]
Tests/test_imagefontctl.py .......................................s.....s..................................                                                          [ 44%]
Tests/test_imagefile.py ..........F......                                                                                                                            [ 45%]
Tests/test_locale.py .                                                                                                                                               [ 45%]
Tests/test_image_array.py ..                                                                                                                                         [ 45%]
Tests/test_numpy.py .............                                                                                                                                    [ 46%]
Tests/test_imagestat.py ...                                                                                                                                          [ 46%]
Tests/test_file_gimppalette.py ..                                                                                                                                    [ 46%]
Tests/test_image_transpose.py ........                                                                                                                               [ 46%]
Tests/test_image_resample.py ...............................x.x..                                                                                                    [ 47%]
Tests/test_file_hdf5stub.py ....                                                                                                                                     [ 48%]
Tests/test_font_pcf.py .....                                                                                                                                         [ 48%]
Tests/test_imageqt.py sss                                                                                                                                            [ 48%]
Tests/test_file_fitsstub.py ....                                                                                                                                     [ 48%]
Tests/test_image_mode.py ..                                                                                                                                          [ 48%]
Tests/test_image_resize.py ...............                                                                                                                           [ 49%]
Tests/test_format_lab.py ...                                                                                                                                         [ 49%]
Tests/test_format_hsv.py ....                                                                                                                                        [ 49%]
Tests/test_features.py ..............                                                                                                                                [ 49%]
Tests/test_imagetk.py ssss                                                                                                                                           [ 50%]
Tests/test_file_mcidas.py ..                                                                                                                                         [ 50%]
Tests/test_image_transform.py .......................................                                                                                                [ 51%]
Tests/test_file_cur.py ..                                                                                                                                            [ 51%]
Tests/test_pickle.py ...............                                                                                                                                 [ 52%]
Tests/test_imagepath.py ...........                                                                                                                                  [ 52%]
Tests/test_file_xbm.py .....                                                                                                                                         [ 52%]
Tests/test_font_bdf.py ..                                                                                                                                            [ 52%]
Tests/test_shell_injection.py ....                                                                                                                                   [ 53%]
Tests/test_box_blur.py ..............                                                                                                                                [ 53%]
Tests/test_imagechops.py ..............................                                                                                                              [ 54%]
Tests/test_file_bufrstub.py ....                                                                                                                                     [ 54%]
Tests/test_file_webp_lossless.py .                                                                                                                                   [ 54%]
Tests/test_file_bmp.py ...........                                                                                                                                   [ 55%]
Tests/test_image_putpalette.py ...                                                                                                                                   [ 55%]
Tests/test_psdraw.py ..                                                                                                                                              [ 55%]
Tests/test_file_iptc.py .....                                                                                                                                        [ 55%]
Tests/test_file_gd.py ...                                                                                                                                            [ 55%]
Tests/test_file_libtiff_small.py ...                                                                                                                                 [ 55%]
Tests/test_image_tobitmap.py .                                                                                                                                       [ 55%]
Tests/test_file_xpm.py ...                                                                                                                                           [ 56%]
Tests/test_file_gbr.py ...                                                                                                                                           [ 56%]
Tests/test_file_gimpgradient.py ..........                                                                                                                           [ 56%]
Tests/test_util.py ......                                                                                                                                            [ 56%]
Tests/test_imagedraw.py ........................s........................................................................                                            [ 60%]
Tests/test_imageshow.py ......ss                                                                                                                                     [ 60%]
Tests/test_image_getbands.py .                                                                                                                                       [ 60%]
Tests/test_file_tiff_metadata.py .................                                                                                                                   [ 61%]
Tests/test_tiff_ifdrational.py ....                                                                                                                                  [ 61%]
Tests/oss-fuzz/test_fuzzers.py ............................................................................F............................................F........... [ 66%]
.....................................................................................F.............................................................................. [ 72%]
....................................................................................................................F............................................... [ 78%]
........F.....................................................................................................................F..................................... [ 84%]
...........F.................................................F.....................................F................................................................ [ 90%]
..............................................................F...........................                                                                           [ 93%]
Tests/test_image_paste.py ...........                                                                                                                                [ 94%]
Tests/test_file_mic.py ......                                                                                                                                        [ 94%]
Tests/test_file_pcx.py .............                                                                                                                                 [ 95%]
Tests/test_image_draft.py ...                                                                                                                                        [ 95%]
Tests/test_mode_i16.py ...                                                                                                                                           [ 95%]
Tests/test_file_webp_metadata.py .......                                                                                                                             [ 95%]
Tests/test_font_pcf_charsets.py .........                                                                                                                            [ 95%]
Tests/test_file_tga.py .........                                                                                                                                     [ 96%]
Tests/test_file_ftex.py ..                                                                                                                                           [ 96%]
Tests/test_imagewin.py ...sssss                                                                                                                                      [ 96%]
Tests/test_qt_image_toqimage.py s                                                                                                                                    [ 96%]
Tests/test_file_spider.py ................                                                                                                                           [ 97%]
Tests/test_image_getbbox.py ..                                                                                                                                       [ 97%]
Tests/test_sgi_crash.py FFFFFFFFFFF                                                                                                                                  [ 97%]
Tests/test_file_fpx.py ..                                                                                                                                            [ 97%]
Tests/test_image_getdata.py ..                                                                                                                                       [ 97%]
Tests/test_file_gif.py ....................................................                                                                                          [ 99%]
Tests/test_bmp_reference.py ...                                                                                                                                      [ 99%]
Tests/test_file_wal.py .                                                                                                                                             [ 99%]
Tests/test_webp_leaks.py .                                                                                                                                           [100%]

================================================================================= FAILURES =================================================================================
_______________________________________________________________________________ test_resize ________________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_resize():
        files = [FILE1, FILE2, "Tests/images/illu10_preview.eps"]
        for fn in files:
            with Image.open(fn) as im:
                new_size = (100, 100)
>               im = im.resize(new_size)

Tests/test_file_eps.py:183:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmppjwkfzto', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_emptyline ______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_emptyline():
        # Test file includes an empty line in the header data
        emptyline_file = "Tests/images/zero_bb_emptyline.eps"

        with Image.open(emptyline_file) as image:
>           image.load()

Tests/test_file_eps.py:263:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpcyk4b1rw', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb_emptyline.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale1 ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    @skip_unless_feature("zlib")
    def test_render_scale1():
        # We need png support for these render test

        # Zero bounding box
        with Image.open(FILE1) as image1_scale1:
>           image1_scale1.load()

Tests/test_file_eps.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwo_dpkek', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_thumbnail ______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_thumbnail():
        # Issue #619
        # Arrange
        files = [FILE1, FILE2]
        for fn in files:
            with Image.open(FILE1) as im:
                new_size = (100, 100)
>               im.thumbnail(new_size)

Tests/test_file_eps.py:195:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2344: in thumbnail
    im = self.resize(size, resample, box=box, reducing_gap=reducing_gap)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmptc9v1ama', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_______________________________________________________________________________ test_sanity ________________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_sanity():
        # Regular scale
        with Image.open(FILE1) as image1:
>           image1.load()

Tests/test_file_eps.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpn_h7anqz', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________________________ test_bytesio_object ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_bytesio_object():
        with open(FILE1, "rb") as f:
            img_bytes = io.BytesIO(f.read())

        with Image.open(img_bytes) as img:
>           img.load()

Tests/test_file_eps.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmprmpt993w', '-c', '0 0 translate', '-f', '/tmp/tmp2l5z5mdn', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale2 ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    @skip_unless_feature("zlib")
    def test_render_scale2():
        # We need png support for these render test

        # Zero bounding box
        with Image.open(FILE1) as image1_scale2:
>           image1_scale2.load(scale=2)

Tests/test_file_eps.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpg_2trb9y', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________________________ test_file_object _____________________________________________________________________________

tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-10/test_file_object0')

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_file_object(tmp_path):
        # issue 479
        with Image.open(FILE1) as image1:
            with open(str(tmp_path / "temp.eps"), "wb") as fh:
>               image1.save(fh, "EPS")

Tests/test_file_eps.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
    self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
    self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp9ltm9q13', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_iobase_object ____________________________________________________________________________

tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-10/test_iobase_object0')

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_iobase_object(tmp_path):
        # issue 479
        with Image.open(FILE1) as image1:
            with open(str(tmp_path / "temp_iobase.eps"), "wb") as fh:
>               image1.save(fh, "EPS")

Tests/test_file_eps.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
    self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
    self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpijsgikw1', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_showpage _______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_showpage():
        # See https://github.com/python-pillow/Pillow/issues/2615
        with Image.open("Tests/images/reqd_showpage.eps") as plot_image:
            with Image.open("Tests/images/reqd_showpage.png") as target:
                # should not crash/hang
>               plot_image.load()

Tests/test_file_eps.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp6vm2xvxh', '-c', '0 0 translate', '-f', 'Tests/images/reqd_showpage.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________________________ test_cmyk _________________________________________________________________________________

    @pytest.mark.valgrind_known_error(reason="Known Failing")
    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_cmyk():
        with Image.open("Tests/images/pil_sample_cmyk.eps") as cmyk_image:

            assert cmyk_image.mode == "CMYK"
            assert cmyk_image.size == (100, 100)
            assert cmyk_image.format == "EPS"

>           cmyk_image.load()

Tests/test_file_eps.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpp79u2cv9', '-c', '0 0 translate', '-f', 'Tests/images/pil_sample_cmyk.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_________________________________________________________________ TestDecompressionBomb.test_exception_gif _________________________________________________________________

self = <Tests.test_decompression_bomb.TestDecompressionBomb object at 0x7fb6916bc580>

    def test_exception_gif(self):
        with pytest.raises(Image.DecompressionBombError):
            with Image.open("Tests/images/decompression_bomb.gif"):
>               pass
E               Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>

Tests/test_decompression_bomb.py:64: Failed
________________________________________________________________________ TestImageFile.test_parser _________________________________________________________________________

self = <Tests.test_imagefile.TestImageFile object at 0x7fb6a2182250>

    def test_parser(self):
        def roundtrip(format):

            im = hopper("L").resize((1000, 1000), Image.NEAREST)
            if format in ("MSP", "XBM"):
                im = im.convert("1")

            test_file = BytesIO()

            im.copy().save(test_file, format)

            data = test_file.getvalue()

            parser = ImageFile.Parser()
            parser.feed(data)
            imOut = parser.close()

            return im, imOut

        assert_image_equal(*roundtrip("BMP"))
        im1, im2 = roundtrip("GIF")
        assert_image_similar(im1.convert("P"), im2, 1)
        assert_image_equal(*roundtrip("IM"))
        assert_image_equal(*roundtrip("MSP"))
        if features.check("zlib"):
            try:
                # force multiple blocks in PNG driver
                ImageFile.MAXBLOCK = 8192
                assert_image_equal(*roundtrip("PNG"))
            finally:
                ImageFile.MAXBLOCK = MAXBLOCK
        assert_image_equal(*roundtrip("PPM"))
        assert_image_equal(*roundtrip("TIFF"))
        assert_image_equal(*roundtrip("XBM"))
        assert_image_equal(*roundtrip("TGA"))
        assert_image_equal(*roundtrip("PCX"))

        if EpsImagePlugin.has_ghostscript():
>           im1, im2 = roundtrip("EPS")

Tests/test_imagefile.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/test_imagefile.py:38: in roundtrip
    imOut = parser.close()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/ImageFile.py:471: in close
    self.image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpqlar97to', '-c', '0 0 translate', '-f', '/tmp/tmpdykuv0tq', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/illuCS6_no_preview.eps] ___________________________________________________________

path = b'Tests/images/illuCS6_no_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmps0rafxdz', '-c', '0 0 translate', '-f', '/tmp/tmp7i__jms9', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/pil_sample_cmyk.eps] ____________________________________________________________

path = b'Tests/images/pil_sample_cmyk.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3_0amwp1', '-c', '0 0 translate', '-f', '/tmp/tmpbxjanzeq', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/illu10_no_preview.eps] ___________________________________________________________

path = b'Tests/images/illu10_no_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmphbj9tfzo', '-c', '0 0 translate', '-f', '/tmp/tmpycc2bul6', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/zero_bb_emptyline.eps] ___________________________________________________________

path = b'Tests/images/zero_bb_emptyline.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3pfjgvax', '-c', '0 0 translate', '-f', '/tmp/tmpzrebstkc', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________ test_fuzz_images[Tests/images/non_zero_bb.eps] ______________________________________________________________

path = b'Tests/images/non_zero_bb.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpnfttxor6', '-c', '-50 -50 translate', '-f', '/tmp/tmp4s7d8j_y', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________ test_fuzz_images[Tests/images/reqd_showpage.eps] _____________________________________________________________

path = b'Tests/images/reqd_showpage.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwjh7zr1h', '-c', '0 0 translate', '-f', '/tmp/tmpetefyd8b', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________ test_fuzz_images[Tests/images/zero_bb.eps] ________________________________________________________________

path = b'Tests/images/zero_bb.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwbyat028', '-c', '0 0 translate', '-f', '/tmp/tmpv_eizq6i', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/binary_preview_map.eps] ___________________________________________________________

path = b'Tests/images/binary_preview_map.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpzfbk929b', '-c', '0 0 translate', '-f', '/tmp/tmp6p_eu2ve', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illuCS6_preview.eps] ____________________________________________________________

path = b'Tests/images/illuCS6_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpskkgtdft', '-c', '0 0 translate', '-f', '/tmp/tmp81u1r7bl', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illu10_preview.eps] _____________________________________________________________

path = b'Tests/images/illu10_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpt4yf6kj9', '-c', '0 0 translate', '-f', '/tmp/tmp1rbsr5sk', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_________________________________________________________________ test_crashes[Tests/images/sgi_crash.bin] _________________________________________________________________

test_file = 'Tests/images/sgi_crash.bin'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi] _______________________________________________

test_file = 'Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi] _______________________________________________

test_file = 'Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
_________________________________________________________ test_crashes[Tests/images/sgi_overrun_expandrowF04.bin] __________________________________________________________

test_file = 'Tests/images/sgi_overrun_expandrowF04.bin'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
_________________________________________________________ test_crashes[Tests/images/ossfuzz-5730089102868480.sgi] __________________________________________________________

test_file = 'Tests/images/ossfuzz-5730089102868480.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi] _______________________________________________

test_file = 'Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi] _______________________________________________

test_file = 'Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi] _______________________________________________

test_file = 'Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi] _______________________________________________

test_file = 'Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi] _______________________________________________

test_file = 'Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi] _______________________________________________

test_file = 'Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi'

    @pytest.mark.parametrize(
        "test_file",
        [
            "Tests/images/sgi_overrun_expandrowF04.bin",
            "Tests/images/sgi_crash.bin",
            "Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
            "Tests/images/ossfuzz-5730089102868480.sgi",
            "Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
            "Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
            "Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
            "Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
            "Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
            "Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
            "Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
        ],
    )
    def test_crashes(test_file):
        with open(test_file, "rb") as f:
            im = Image.open(f)
            with pytest.raises(OSError):
>               im.load()
E               Failed: DID NOT RAISE <class 'OSError'>

Tests/test_sgi_crash.py:27: Failed
============================================================================= warnings summary =============================================================================
Tests/test_map.py::test_tobytes
  /home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2855: DecompressionBombWarning: Image size (151587072 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
    warnings.warn(

Tests/test_tiff_crashes.py: 11 warnings
  /home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/TiffImagePlugin.py:793: UserWarning: Truncated File Read
    warnings.warn(str(msg))

Tests/test_decompression_bomb.py::TestDecompressionBomb::test_no_warning_small_file
  /home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2855: DecompressionBombWarning: Image size (16384 pixels) exceeds limit of 16383 pixels, could be decompression bomb DOS attack.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] Tests/test_pyroma.py:5: Pyroma not installed
SKIPPED [1] Tests/test_qt_image_qapplication.py:50: Qt bindings are not installed
SKIPPED [1] Tests/test_file_tiff.py:635: Windows only
SKIPPED [1] Tests/test_file_tiff.py:621: Extra image files not installed
SKIPPED [1] Tests/test_imagegrab.py:39: tests missing XCB
SKIPPED [1] Tests/test_imagegrab.py:77: Windows only
SKIPPED [1] Tests/test_imagegrab.py:37: X connection failed: error 5
SKIPPED [1] Tests/test_imagegrab.py:87: Windows only
SKIPPED [1] Tests/test_imagegrab.py:13: requires Windows or macOS
SKIPPED [1] Tests/test_file_sun.py:35: Extra image files not installed
SKIPPED [1] Tests/test_image_access.py:380: Failing on AppVeyor / GitHub Actions when run from subprocess, not from shell
SKIPPED [1] Tests/test_file_jpeg.py:819: Windows only
SKIPPED [2] Tests/test_tiff_crashes.py:49: test image not found
SKIPPED [1] Tests/test_image_fromqimage.py:48: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:38: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:58: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:43: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:53: Qt bindings are not installed
SKIPPED [1] Tests/test_file_msp.py:58: Extra image files not installed
SKIPPED [1] Tests/test_file_msp.py:72: Even More Extra image files not installed
SKIPPED [1] Tests/test_file_icns.py:44: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:31: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:60: Requires macOS
SKIPPED [2] Tests/test_imagefontctl.py:238: fails with this font
SKIPPED [1] Tests/test_imageqt.py:44: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:15: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:49: Qt bindings are not installed
SKIPPED [4] Tests/test_imagetk.py:30: TCL Error: no display name and no $DISPLAY environment variable
SKIPPED [1] Tests/test_imagedraw.py:921: failing
SKIPPED [1] Tests/test_imageshow.py:44: Only run on CIs; hangs on Windows CIs
SKIPPED [1] Tests/test_imageshow.py:72: IPython not installed
SKIPPED [1] Tests/test_imagewin.py:58: Windows only
SKIPPED [1] Tests/test_imagewin.py:72: Windows only
SKIPPED [1] Tests/test_imagewin.py:87: Windows only
SKIPPED [1] Tests/test_imagewin.py:37: Windows only
SKIPPED [1] Tests/test_imagewin.py:47: Windows only
SKIPPED [1] Tests/test_qt_image_toqimage.py:15: Qt bindings are not installed
XFAIL Tests/test_file_palm.py::test_p_mode
  Palm P image is wrong
XFAIL Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_ico
  different exception
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_la
  Current implementation isn't precise enough
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_rgba
  Current implementation isn't precise enough
FAILED Tests/test_file_eps.py::test_resize - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_emptyline - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_file_eps.py::test_render_scale1 - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_thumbnail - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_file_eps.py::test_sanity - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_bytesio_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '...
FAILED Tests/test_file_eps.py::test_render_scale2 - subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...
FAILED Tests/test_file_eps.py::test_file_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dS...
FAILED Tests/test_file_eps.py::test_iobase_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_showpage - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFE...
FAILED Tests/test_file_eps.py::test_cmyk - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', ...
FAILED Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_gif - Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>
FAILED Tests/test_imagefile.py::TestImageFile::test_parser - subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dN...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.00000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00000...
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_crash.bin] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_overrun_expandrowF04.bin] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/ossfuzz-5730089102868480.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi] - Failed: DID NOT RAISE <class 'OSError'>
============================================= 34 failed, 2620 passed, 42 skipped, 4 xfailed, 13 warnings in 126.90s (0:02:06) ==============================================
@radarhere
Copy link
Member

So there are three types of errors in your output

  • subprocess.CalledProcessError for Ghostscript
  • "Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>"
  • "Failed: DID NOT RAISE <class 'OSError'>" in response to security tests

If you try it independently, does Ghostscript work in your environment?

@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

And yet another this time probably more serious issue.
I'm using pytest randomiser plugin. which is causing that after collection test units on each try they are executed in random order.
After deselect some initial set of failing units I found that that tests executed that way are not deterministic and each time are failing different set of units.
Part of my spec:

%pytest %{?with_failing_tests: -k "\
        not test_bytesio_object and \
        not test_cmyk and \
        not test_emptyline and \
        not test_exception_gif and \
        not test_file_object and \
        not test_iobase_object and \
        not test_parser and \
        not test_render_scale1 and \
        not test_render_scale2 and \
        not test_resize and \
        not test_sanity and \
        not test_showpage and \
        not test_thumbnail"}

After add above I've started:

[tkloczko@barrel SPECS]$ for i in {1..20}; do echo "try $i"; (rpmbuild -bi --short-circuit --with check python-pillow.spec ) 2>1 | grep ^FAILED; done                       try 1
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps]
FAILED Tests/test_file_fli.py::test_timeouts[Tests/images/timeout-bff0a9dc7243a8e6ede2408d2ffa6a9964698b87.fli]
FAILED Tests/test_file_fli.py::test_timeouts[Tests/images/timeout-9139147ce93e20eb14088fe238e541443ffd64b3.fli]
FAILED Tests/test_image.py::TestImage::test_overrun[ossfuzz-4836216264589312.pcx]
FAILED Tests/test_image.py::TestImage::test_overrun[01r_00.pcx] - assert False
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_fli_overrun2 - assert False
FAILED Tests/test_image.py::TestImage::test_overrun[fli_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun_expandrow.bin]
FAILED Tests/test_image.py::TestImage::test_overrun[pcx_overrun2.bin] - asser...
FAILED Tests/test_image.py::TestImage::test_overrun[pcx_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun_expandrow2.bin]
FAILED Tests/test_file_jpeg.py::TestFileJpeg::test_truncated_jpeg_throws_oserror
try 2
FAILED Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_bmp
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps]
FAILED Tests/test_image.py::TestImage::test_overrun[01r_00.pcx] - assert False
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun_expandrow2.bin]
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_overrun[ossfuzz-4836216264589312.pcx]
FAILED Tests/test_image.py::TestImage::test_fli_overrun2 - assert False
FAILED Tests/test_image.py::TestImage::test_overrun[fli_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_overrun[pcx_overrun2.bin] - asser...
FAILED Tests/test_image.py::TestImage::test_overrun[pcx_overrun.bin] - assert...
FAILED Tests/test_image.py::TestImage::test_overrun[sgi_overrun_expandrow.bin]
try 3
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps]
FAILED Tests/test_file_png.py::TestFilePng::test_scary - UnicodeDecodeError: ...
try 4
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps]
try 5
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps]
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps]
FAILED Tests/test_decompression_bomb.py::TestDecompressionBomb::test_no_warning_small_file
FAILED Tests/test_file_fli.py::test_timeouts[Tests/images/timeout-9139147ce93e20eb14088fe238e541443ffd64b3.fli]
FAILED Tests/test_file_fli.py::test_timeouts[Tests/images/timeout-bff0a9dc7243a8e6ede2408d2ffa6a9964698b87.fli]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_overrun_expandrowF04.bin]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_crash.bin] - Fa...
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi]
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/ossfuzz-5730089102868480.sgi]
try 6
^C

Similar issue is with pyfakefs module pytest-dev/pyfakefs#608

@radarhere
Copy link
Member

I'm running pytest with quite long list of pytest extensions

Could you provide a copy of that list?

@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

Here is full list of python modules which I have now instaled in my devel env

[tkloczko@barrel SPECS]$ pip list
Package                       Version
----------------------------- -----------------
aiofiles                      0.6.0
aiohttp                       3.7.4.post0
aiohttp-cors                  0.7.0
alabaster                     0.7.12
amqp                          5.0.6
ansi                          0.2.0
anytree                       2.8.0
apipkg                        1.5
appdirs                       1.4.4
argcomplete                   1.11.1
Arpeggio                      1.10.2
arrow                         1.1.0
asgiref                       3.3.4
asn1crypto                    1.4.0
aspectlib                     1.5.2
astor                         0.8.1
astroid                       2.5.7
async-generator               1.10
async-timeout                 3.0.1
atomicwrites                  1.3.0
attrs                         21.2.0
autoapi                       2.0.1
autodocsumm                   0.2.4
Automat                       20.2.0
Babel                         2.9.1
backcall                      0.2.0
bcrypt                        3.2.0
Beaker                        1.10.0
beautifulsoup4                4.9.3
betamax                       0.8.1
billiard                      3.6.4.0
blinker                       1.4
blivet                        3.4.0
boto3                         1.17.87
botocore                      1.20.87
bottle                        0.12.19
breathe                       4.30.0
Brlapi                        0.8.0
Brotli                        1.0.7
build                         0.4.0
cachetools                    4.2.2
cairocffi                     1.2.0
CairoSVG                      2.5.2
case                          1.5.3
cbor2                         5.4.0
CCColUtils                    1.5
certifi                       2018.10.15
cffi                          1.14.5
cfgv                          3.2.0
chai                          1.1.2
changelog                     0.5.5
chardet                       3.0.4
click                         8.0.1
click-default-group           1.2.2
colorama                      0.4.4
colorlog                      5.0.1
commonmark                    0.9.0
constantly                    15.1.0
contextvars                   2.4
cov-core                      1.15.0
coverage                      5.6b1
cram                          0.7
cryptography                  3.3.1
cryptography-vectors          3.4.7
cssselect                     1.1.0
cssselect2                    0.4.1
curio                         1.5
cycler                        0.10.0
Cython                        0.29.22
dateparser                    0.7.4
dateutils                     0.6.12
dbus-python                   1.2.16
ddt                           1.4.2
decopatch                     1.4.8
decorator                     5.0.8
defusedxml                    0.7.1
distlib                       0.3.1
distro                        1.5.0
Django                        3.2.2
dnspython                     2.1.0
docopt                        0.6.2
docutils                      0.16
docutils-stubs                0.0.21
dogtail                       0.9.11
dpkt                          1.9.6
dulwich                       0.20.23
editdistance                  0.5.3
editdistance-s                1.0.0
elasticsearch                 7.11.0
elementpath                   2.2.2
entrypoints                   0.3
evdev                         1.4.0
exam                          0.10.6
execnet                       1.7.1
extras                        1.0.0
factory-boy                   3.2.0
Faker                         8.4.0
fido2                         0.9.1
fields                        5.0.0
filelock                      3.0.12
fixtures                      3.0.0
flake8                        3.9.1
Flask                         1.1.2
Flask-SQLAlchemy              2.5.1
fluidity-sm                   0.2.0
fonttools                     4.24.4
freezegun                     1.0.0
func-timeout                  4.4.0
future                        0.18.2
fuzzywuzzy                    0.18.0
gcovr                         4.2
Genshi                        0.7.5
genty                         1.3.2
gevent                        21.1.2
geventhttpclient              1.4.5
gi-docgen                     2021.1
gitdb                         4.0.7
GitPython                     3.1.14
gpg                           1.15.1-unknown
greenlet                      1.1.0
guzzle-sphinx-theme           0.7.11
h11                           0.12.0
h2                            4.1.0+dev
hacking                       4.0.0
hidapi                        0.10.1
html5lib                      1.1
httmock                       1.4.0
httpbin                       0.7.0
humanize                      0.5.1
hyperframe                    6.0.1
hyperlink                     21.0.0
hypothesis                    6.13.14
identify                      2.2.8
idna                          3.1
ifaddr                        0.1.7
imagesize                     1.2.0
immutables                    0.15
importlib-metadata            4.5.0
incremental                   17.5.0
inflect                       5.3.0
iniconfig                     1.1.1
invoke                        1.5.0
ipython-genutils              0.2.0
iso8601                       0.1.14
isodate                       0.6.0
isort                         5.7.0
itsdangerous                  2.0.1
jaraco.classes                3.2.1
jaraco.envs                   0.0.0
jaraco.functools              3.3.0
jaraco.itertools              6.0.1
jaraco.packaging              8.2.1
jaraco.path                   0.0.0
jaraco.text                   3.5.0
javapackages                  5.3.0
jedi                          0.18.0
Jinja2                        3.0.1
jmespath                      0.10.0
jsonschema                    3.2.0
kiwisolver                    1.2.0
kombu                         5.1.0
lark-parser                   0.11.2
lazy-object-proxy             1.6.0
lexicon                       1.0.0
libcomps                      0.1.15
libevdev                      0.9
linecache2                    1.0.0
lit                           12.0.0.dev0
lockfile                      0.12.2
louis                         3.17.0
lxml                          4.6.3
makefun                       1.11.3
Mako                          1.1.4.dev0
mallard-ducktype              1.0.2
marisa                        0.0.0
Markdown                      3.3.4
MarkupSafe                    2.0.1
mccabe                        0.6.1
meson                         0.58.0
metaextract                   1.0.7
mistune                       2.0.0a6
mock                          4.0.3
more-itertools                8.8.0
msgpack                       1.0.2
mujson                        1.4
multidict                     5.1.0
mypy                          0.812
mypy-extensions               0.4.3
netaddr                       0.8.0
nftables                      0.1
nocasedict                    1.0.2
nocaselist                    1.0.4
nodeenv                       1.6.0
nose                          1.3.7
nose-cover3                   0.1.0
nose2                         0.10.0
ntplib                        0.4.0
numpy                         1.18.2
olefile                       0.46
openidc-client                0.6.0
openstackdocstheme            2.2.7
ordered-set                   4.0.2
outcome                       1.1.0
packaging                     20.9
Pallets-Sphinx-Themes         2.0.1
pandas                        1.2.4
parameterized                 0.8.1
paramiko                      2.7.2
parso                         0.8.0
parver                        0.3.1
Paste                         3.5.0
PasteDeploy                   2.1.1
path                          15.1.2
pathspec                      0.8.1
pbr                           5.6.0
pcapy                         0.11.4
pep517                        0.10.0
pexpect                       4.8.0
pickleshare                   0.7.5
pid                           3.0.4
pip                           20.0.2
pluggy                        0.13.1
ply                           3.11
pocketlint                    0.21
poetry-core                   1.0.3
polib                         1.1.1
pretend                       1.0.9
prettytable                   0.7.2
priority                      1.3.0
process-tests                 2.1.1
productmd                     1.33
prompt-toolkit                3.0.18
psutil                        5.6.7
ptyprocess                    0.7.0
purl                          1.5
pwquality                     1.4.4
py                            1.10.0
py-cpuinfo                    8.0.0
py2pack                       0.8.6
pyasn1                        0.4.8
pyasn1-modules                0.2.8
pybind11                      2.6.2
pycairo                       1.18.2
pycodestyle                   2.7.0
pycparser                     2.20
pycrypto                      2.6.1
pycups                        1.9.74
pycurl                        7.43.0.5
pydantic                      1.8.2
pydocstyle                    6.0.0
pyenchant                     3.2.0
pyfakefs                      4.5.0
pyflakes                      2.3.1
pygal                         3.0.0.dev1
Pygments                      2.9.0.dev20210503
pygments-ansi-color           0.0.6
pygments-pytest               2.2.0
PyGObject                     3.40.1
PyHamcrest                    2.0.2
pyinotify                     0.9.6
pykickstart                   3.32
pylast                        3.3.0
pylint                        2.7.4
pylons-sphinx-themes          1.0.13
PyNaCl                        1.4.0
pyOpenSSL                     20.0.1
pyparsing                     2.4.6
pyparted                      3.11.5
PyQt5                         5.14.2
PyQt5-sip                     4.19.22
pyquery                       1.4.4.dev0
pyrad                         2.4
pyrsistent                    0.17.3
pyscard                       2.0.0
pyScss                        1.3.7
pyserial                      3.4
PySocks                       1.7.1
pytest                        6.2.4
pytest-aiohttp                0.3.0
pytest-asyncio                0.15.1
pytest-cases                  3.4.6
pytest-checkdocs              2.7.0
pytest-cov                    2.12.1
pytest-expect                 1.1.0
pytest-fixture-config         1.7.0
pytest-flake8                 1.0.7
pytest-forked                 1.3.0
pytest-freezegun              0.4.2
pytest-httpbin                1.0.0
pytest-isort                  1.3.0
pytest-mock                   3.6.1
pytest-randomly               3.8.0
pytest-rerunfailures          9.1.1
pytest-runner                 5.3.1
pytest-shutil                 1.7.0
pytest-timeout                1.4.2
pytest-toolbox                0.5
pytest-virtualenv             1.7.0
pytest-xdist                  2.2.1
pytest-xprocess               0.17.1
python-augeas                 0.5.0
python-dateutil               2.8.1
python-dbusmock               0.22.0
python-mimeparse              1.6.0
python-subunit                1.4.0
python-xlib                   0.30
pytz                          2021.1
pyudev                        0.22.0
pyusb                         1.1.1
PyUtilib                      6.0.0
pywbem                        1.1.3
pyxattr                       0.7.2
pyxdg                         0.26
PyYAML                        5.4.1
raven                         6.10.0
rdflib                        5.0.0
re-assert                     1.1.0
readthedocs-sphinx-ext        2.1.4
recommonmark                  0.7.1
redis                         3.5.3
regex                         2021.4.4
releases                      1.6.3
reno                          3.2.0
requests                      2.25.1
requests-download             0.1.2
requests-file                 1.5.1
requests-ftp                  0.3.1
requests-mock                 1.9.3
requests-toolbelt             0.9.1
requests-unixsocket           0.2.0
responses                     0.12.1
rpm                           4.16.1.3
rsa                           4.7.2
rst.linker                    2.2.0
s3transfer                    0.4.2
scons                         3.1.2
scour                         0.38.2
selenium                      3.14.0
selinux                       3.2
semantic-version              2.8.5
service-identity              21.1.0
setools                       4.3.0
setuptools                    46.1.3
setuptools-git                1.2
setuptools-scm                6.0.1
should-dsl                    2.1.2
simplejson                    3.17.2
simpleline                    1.8
six                           1.16.0
slip                          0.6.5
slip.dbus                     0.6.5
smartypants                   2.0.1
smmap                         4.0.0
sniffio                       1.2.0
snowballstemmer               2.1.0
solaar                        1.0.6
sortedcontainers              2.1.0
sos                           4.1
soupsieve                     2.2.1
spec                          1.4.1
Sphinx                        4.0.2
sphinx-argparse-cli           0.0.0
sphinx-autodoc-typehints      0.0.0
sphinx-celery                 2.0.0
sphinx-gallery                0.8.2
sphinx-hoverxref              0.5b1
sphinx-issues                 1.2.0
sphinx-lv2-theme              1.0.0
sphinx-markdown-tables        0.0.15
sphinx-paramlinks             0.5.1
sphinx-prompt                 1.4.0
sphinx-py3doc-enhanced-theme  2.4.0
sphinx-removed-in             0.2.1
sphinx-rst-builder            0.0.3
sphinx-rtd-theme              0.5.2
sphinx-selective-exclude      1.0.3
sphinx-tabs                   3.0.0
sphinx-typlog-theme           0.8.0
sphinxcontrib-apidoc          0.3.0
sphinxcontrib-applehelp       1.0.1
sphinxcontrib-asyncio         0.3.0
sphinxcontrib-autoprogram     0.1.7
sphinxcontrib-devhelp         1.0.1
sphinxcontrib-htmlhelp        1.0.1
sphinxcontrib-httpdomain      1.7.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-log-cabinet     1.0.1
sphinxcontrib-qthelp          1.0.2
sphinxcontrib-restbuilder     0.3
sphinxcontrib-serializinghtml 1.1.5.dev20210606
sphinxcontrib-spelling        7.2.1
sphinxcontrib-trio            1.1.2
sphinxcontrib-websupport      1.2.4
sphobjinv                     2.0.1
SQLAlchemy                    1.4.17
sqlparse                      0.4.2.dev0
stdio-mgr                     1.0.1
stdlib-list                   0.6.0
stone                         3.2.1
sure                          1.4.11
sybil                         2.0.1
systemd-python                234
Tempita                       0.5.2
termcolor                     1.1.0
testpath                      0.4.4
testrepository                0.0.20
testresources                 2.0.1
testscenarios                 0.5.0
testtools                     2.4.0
text-unidecode                1.3
texttable                     1.6.3
tinycss2                      1.1.0
toml                          0.10.2
tomlkit                       0.7.2
tornado                       6.1
towncrier                     19.9.0
tox                           3.14.6
tpm2-pkcs11-tools             1.33.7
traitlets                     5.0.5
transaction                   3.0.1
trio                          0.18.0+dev
trustme                       0.7.0
Twisted                       21.2.0
typed-ast                     1.4.3
typing-extensions             3.10.0.0
typogrify                     2.0.7
tzlocal                       2.1
u-msgpack-python              2.7.1
ujson                         4.0.2
unittest-mixins               1.6
unittest2                     1.1.0
urllib3                       1.26.5
userpath                      1.6.0
uTidylib                      0.7
uvicorn                       0.13.4
validators                    0.18.1
vine                          5.0.0
virtualenv                    20.4.7
waitress                      1.4.4
watchgod                      0.7
wcwidth                       0.2.5
webcolors                     1.11.1
webencodings                  0.5.1
WebOb                         1.8.7
websocket-client              1.0.1
websockets                    9.0.1
WebTest                       2.0.35
Werkzeug                      2.0.0
wheel                         0.36.2
Whoosh                        2.7.4
wrapt                         1.12.1
WSGIProxy2                    0.4.6
xcffib                        0.11.1
xmlschema                     1.6.2
xmltodict                     0.12.0
yamlloader                    1.0.0
yarl                          1.6.3
youtube-dl                    2021.6.6
zeroconf                      0.30.0
zipp                          3.4.1
zope.event                    4.5.0
zope.interface                5.4.0
zope.testing                  4.9
zzzeeksphinx                  1.2.3

@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

Here is shorter list more related to pytest.

[tkloczko@barrel SPECS]$ rpm -qa | grep pytest
python-pytest-flake8-1.0.7-2.fc35.noarch
python-pytest-timeout-1.4.2-4.fc35.noarch
python-pytest-freezegun-0.4.2-2.fc35.noarch
python-pytest-cases-3.4.6-1.fc35.noarch
python-pytest-isort-1.3.0-2.fc35.noarch
python-pygments-pytest-2.2.0-2.fc35.noarch
python-pytest-expect-1.1.0-10.fc35.noarch
python-pytest-httpbin-1.0.0-4.fc35.noarch
python-pytest-shutil-1.7.0-12.fc35.noarch
python-pytest-fixture-config-1.7.0-11.fc35.noarch
python-pytest-asyncio-0.15.1-2.fc35.noarch
python-pytest-virtualenv-1.7.0-11.fc35.noarch
python-pytest-toolbox-0.4-7.fc35.noarch
python-pytest-xprocess-0.17.1-3.fc35.noarch
python-pytest-aiohttp-0.3.0-12.fc35.noarch
python-pytest-checkdocs-2.7.0-2.fc35.noarch
python-pytest-runner-5.3.1-2.fc35.noarch
python-pytest-rerunfailures-9.1.1-3.fc35.noarch
python-pytest-forked-1.3.0-4.fc35.noarch
python-pytest-xdist-2.2.1-3.fc35.noarch
python-pytest-cov-2.12.1-2.fc35.noarch
python-pytest-randomly-3.8.0-4.fc35.noarch
python-pytest-mock-3.6.1-4.fc35.noarch
python-pytest-6.2.4-4.fc35.noarch

I still have some number of python packages from Fedora (that is in WIP state)

[root@barrel SRPMS]# dnf list --installed |sort | grep rawhide | grep python; dnf list --installed |sort | grep rawhide | grep python|wc -l
dbus-python-devel.x86_64                          1.2.16-1.fc33                                @rawhide
python3-argcomplete.noarch                        1.11.1-1.fc33                                @rawhide
python3-atomicwrites.noarch                       1.3.0-7.fc32                                 @rawhide
python3-augeas.noarch                             0.5.0-19.fc32                                @rawhide
python3-Automat.noarch                            20.2.0-1.fc33                                @rawhide
python3-beaker.noarch                             1.10.0-7.fc32                                @rawhide
python3-blinker.noarch                            1.4-9.fc32                                   @rawhide
python3-brlapi.x86_64                             0.8.0-1.fc33                                 @rawhide
python3-brotli.x86_64                             1.0.7-10.fc32                                @rawhide
python3-certifi.noarch                            2018.10.15-9.fc32                            @rawhide
python3-chardet.noarch                            3.0.4-15.fc32                                @rawhide
python3-CommonMark.noarch                         0.9.0-5.fc32                                 @rawhide
python3-crypto.x86_64                             2.6.1-30.fc32                                @rawhide
python3-cups.x86_64                               1.9.74-6.fc32                                @rawhide
python3-dateparser.noarch                         0.7.4-1.fc33                                 @rawhide
python3-dbus.x86_64                               1.2.16-1.fc33                                @rawhide
python3-distro.noarch                             1.5.0-1.fc33                                 @rawhide
python3-docopt.noarch                             0.6.2-16.fc32                                @rawhide
python3-entrypoints.noarch                        0.3-5.fc32                                   @rawhide
python3-execnet.noarch                            1.7.1-2.fc32                                 @rawhide
python3-extras.noarch                             1.0.0-11.fc32                                @rawhide
python3-fields.noarch                             5.0.0-4.fc32                                 @rawhide
python3-filelock.noarch                           3.0.12-6.fc32                                @rawhide
python3-future.noarch                             0.18.2-5.fc32                                @rawhide
python3-gluster.x86_64                            7.6-1.fc33                                   @rawhide
python3-humanize.noarch                           0.5.1-22.fc32                                @rawhide
python3-inotify.noarch                            0.9.6-20.fc32                                @rawhide
python3-kiwisolver.x86_64                         1.2.0-1.fc33                                 @rawhide
python3-linecache2.noarch                         1.0.0-26.fc32                                @rawhide
python3-marisa.x86_64                             0.2.4-44.fc32                                @rawhide
python3-numpy.x86_64                              1:1.18.2-1.fc33                              @rawhide
python3-olefile.noarch                            0.46-9.fc32                                  @rawhide
python3-pip.noarch                                20.0.2-2.fc33                                @rawhide
python3-priority.noarch                           1.3.0-9.fc32                                 @rawhide
python3-psutil.x86_64                             5.6.7-1.fc33                                 @rawhide
python3-pyasn1-modules.noarch                     0.4.8-1.fc32                                 @rawhide
python3-pyasn1.noarch                             0.4.8-1.fc32                                 @rawhide
python3-pycurl.x86_64                             7.43.0.5-1.fc32                              @rawhide
python3-pyparsing.noarch                          2.4.6-3.fc33                                 @rawhide
python3-pyparted.x86_64                           1:3.11.5-1.fc33                              @rawhide
python3-pyqt5-sip.x86_64                          4.19.22-1.fc33                               @rawhide
python3-pyserial.noarch                           3.4-7.fc32                                   @rawhide
python3-pyxdg.noarch                              0.26-9.fc32                                  @rawhide
python3-qt5-base.x86_64                           5.14.2-2.fc33                                @rawhide
python3-qt5.x86_64                                5.14.2-2.fc33                                @rawhide
python3-scons.noarch                              3.1.2-2.fc32                                 @rawhide
python3-setools.x86_64                            4.3.0-1.fc33                                 @rawhide
python3-setuptools.noarch                         46.1.3-1.fc33                                @rawhide
python3-sortedcontainers.noarch                   2.1.0-6.fc32                                 @rawhide
python3-sphinxcontrib-applehelp.noarch            1.0.1-6.fc32                                 @rawhide
python3-sphinxcontrib-devhelp.noarch              1.0.1-6.fc32                                 @rawhide
python3-sphinxcontrib-htmlhelp.noarch             1.0.1-6.fc32                                 @rawhide
python3-sphinxcontrib-qthelp.noarch               1.0.2-6.fc32                                 @rawhide
python3-tox.noarch                                3.14.6-1.fc33                                @rawhide
python-pip-wheel.noarch                           19.3.1-2.fc32                                @rawhide
python-qt5-rpm-macros.noarch                      5.14.2-2.fc33                                @rawhide
python-setuptools-wheel.noarch                    41.6.0-2.fc32                                @rawhide
python-wheel-wheel.noarch                         1:0.33.6-3.fc32                              @rawhide
58

However as long as on above list there is no anything with pytest in the name I think that probability that observed effect is result of that mixture is relatively low.

@hugovk
Copy link
Member

hugovk commented Jun 7, 2021

I can reproduce problems using pytest-randomly, and also with pytest-reverse:

I’m the creator and maintainer of pytest-randomly, a plugin for randomly ordering tests. thbde opened an issue there pointing to the paper Empirically revisiting the test independence assumption, which covers test reordering techniques. It turns out that reversal is nearly as effective as randomization.

For this issue, let's not use random or reverse, to reduce the number of moving parts.

If you'd like to work on PRs to fix tests for random/reverse order, please open a new issue to get them working in reverse order first. Thanks!

@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

So there are three types of errors in your output

  • subprocess.CalledProcessError for Ghostscript
  • "Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>"
  • "Failed: DID NOT RAISE <class 'OSError'>" in response to security tests

If you try it independently, does Ghostscript work in your environment?

So far I had no problems with gs.

[tkloczko@barrel SPECS]$ gs -v
GPL Ghostscript 9.54.0 (2021-03-30)
Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.

Is it any specific gs test which I can perform?

@hugovk
Copy link
Member

hugovk commented Jun 7, 2021

Tests/test_file_eps.py requires Ghostscript:

$ pytest Tests/test_file_eps.py
================================================================== test session starts ==================================================================
platform darwin -- Python 3.9.5, pytest-6.2.4, py-1.9.0, pluggy-0.13.1
--------------------------------------------------------------------
Pillow 8.3.0.dev0
Python 3.9.5 (v3.9.5:0a7dcbdb13, May  3 2021, 13:05:53)
       [Clang 12.0.5 (clang-1205.0.22.9)]
--------------------------------------------------------------------
Python modules loaded from /Users/hugo/github/Pillow/src/PIL
Binary modules loaded from /Users/hugo/github/Pillow/src/PIL
--------------------------------------------------------------------
--- PIL CORE support ok, compiled for 8.3.0.dev0
--- TKINTER support ok, loaded 8.6
--- FREETYPE2 support ok, loaded 2.10.4
--- LITTLECMS2 support ok, loaded 2.12
--- WEBP support ok, loaded 1.2.0
--- WEBP Transparency support ok
--- WEBPMUX support ok
--- WEBP Animation support ok
--- JPEG support ok, compiled for 9.0
--- OPENJPEG (JPEG2000) support ok, loaded 2.4.0
--- ZLIB (PNG/ZIP) support ok, loaded 1.2.11
--- LIBTIFF support ok, loaded 4.3.0
*** RAQM (Bidirectional Text) support not installed
*** LIBIMAGEQUANT (Quantization method) support not installed
--- XCB (X protocol) support ok
--------------------------------------------------------------------

rootdir: /Users/hugo/github/Pillow, configfile: setup.cfg
plugins: cov-2.12.1, hypothesis-6.9.2, requests-mock-1.8.0, rerunfailures-9.1.1, flaky-3.7.0, mockito-0.0.4, xdist-2.2.1, reverse-1.2.0, testmon-1.0.3, timeout-1.4.2, forked-1.3.0
collected 17 items

Tests/test_file_eps.py .................                                                                                                          [100%]

================================================================== 17 passed in 2.72s ===================================================================

@hugovk hugovk added the Testing label Jun 7, 2021
@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

OK. I found that I had one symlink broken pointing from ghostscript tree to DroidSansFallbackFull.ttf font. However after fixing that in my ghostscript package still gs if failing :/
I've cheked that with my ghostscript and ghostscript from Fedora.
On trying to strace one failing command:

[tkloczko@barrel Pillow-8.2.0]$ strace -fe trace=file gs -q -g553x475 -r72.000000x72.000000 -dBATCH -dNOPAUSE -dSAFER -sDEVICE=ppmraw -sOutputFile=/tmp/tmpul8a9oh7 -c 0 0 translate -f /tmp/tmphbcdg624 -c showpage
execve("/usr/bin/gs", ["gs", "-q", "-g553x475", "-r72.000000x72.000000", "-dBATCH", "-dNOPAUSE", "-dSAFER", "-sDEVICE=ppmraw", "-sOutputFile=/tmp/tmpul8a9oh7", "-c", "0", "0", "translate", "-f", "/tmp/tmphbcdg624", "-c", "showpage"], 0x7ffe666be380 /* 33 vars */) = 0
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=190409, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgs.so.9", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=22730960, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=3228704, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libtiff.so.5", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=534432, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libcups.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=575712, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libijs-0.35.so", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=28288, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libpng16.so.16", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=236064, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libjbig2dec.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=126992, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libjpeg.so.62", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=495712, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=103200, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/liblcms2.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=410288, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1910568, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=37632, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libpaper.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=21008, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=254512, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=751416, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libopenjp2.so.7", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=367336, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=300592, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2273728, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=108448, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libjbig.so.2.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=55912, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=910888, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libwebp.so.7", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=440016, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=345800, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libavahi-common.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=53584, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libavahi-client.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=81504, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgnutls.so.30", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2038960, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libxml2.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1597136, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libbz2.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=77464, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libharfbuzz.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=863464, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=869320, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=90840, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=23912, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=62104, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=24568, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=3091000, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=130464, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libdbus-1.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=378120, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libp11-kit.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1271744, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libidn2.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=130352, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libunistring.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1588200, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libtasn1.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=94560, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libnettle.so.8", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=300680, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libhogweed.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=299824, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgmp.so.10", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=666936, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=177576, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libgraphite2.so.3", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=133000, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libglib-2.0.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1252256, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=174432, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libsystemd.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=682680, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libffi.so.6", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=40192, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=488872, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libpcre2-8.so.0", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=612440, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=77624, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/liblz4.so.1", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=143184, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=36664, ...}, AT_EMPTY_PATH) = 0
statfs("/sys/fs/selinux", {f_type=SYSFS_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={val=[0, 0]}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_NOSUID|ST_NODEV|ST_NOEXEC|ST_RELATIME}) = 0
statfs("/selinux", 0x7ffed9ed2ab0)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/proc/filesystems", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/proc/mounts", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
access("/etc/selinux/config", F_OK)     = 0
openat(AT_FDCWD, "/proc/sys/crypto/fips_enabled", O_RDONLY) = 3
access("/etc/system-fips", F_OK)        = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/etc/crypto-policies/back-ends/gnutls.config", {st_mode=S_IFREG|0644, st_size=1413, ...}, 0) = 0
openat(AT_FDCWD, "/etc/crypto-policies/back-ends/gnutls.config", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=1413, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/lib64/ghostscript", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_init.ps", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94572, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94572, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_std_e.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3143, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3143, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_il1_e.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2722, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2722, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_statd.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=17851, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=17851, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_fonts.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=48531, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=48531, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cspace.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4059, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4059, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_img.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=23998, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=23998, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_btokn.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12765, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12765, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_dps1.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4756, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4756, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_dps2.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8771, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8771, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_agl.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=218021, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=218021, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_type1.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12543, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12543, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_lev2.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=43850, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=43850, ...}, AT_EMPTY_PATH) = 0
newfstatat(AT_FDCWD, "/usr/share/ghostscript/iccprofiles/default_gray.icc", {st_mode=S_IFREG|0644, st_size=2460, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_res.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=42450, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=42450, ...}, AT_EMPTY_PATH) = 0
newfstatat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_init.ps", {st_mode=S_IFREG|0644, st_size=94572, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_resmp.ps", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=22482, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=22482, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_typ42.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2096, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2096, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cidfn.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=14155, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=14155, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/lib/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Font/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/fonts/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/fonts/google-droid/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/usr/share/ghostscript/Resource/ProcSet/CIDInit", 0x7ffed9ed08b0, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/lib/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Font/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/fonts/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/fonts/google-droid/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/ProcSet/CIDInit", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_ciddc.ps", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=8505, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=8505, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cidcm.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=16827, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=16827, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_fntem.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=11389, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=11389, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/xlatmap", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1767, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1767, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_sym_e.ps", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=3104, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=3104, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_dbt_e.ps", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2134, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2134, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cidtt.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=5847, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=5847, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cidfm.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8069, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=8069, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/cidfmap", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2156, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=2156, ...}, AT_EMPTY_PATH) = 0
newfstatat(AT_FDCWD, "/usr/share/ghostscript/Resource/CIDFSubst/DroidSansFallback.ttf", {st_mode=S_IFREG|0644, st_size=4033576, ...}, 0) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/CIDFSubst/DroidSansFallback.ttf", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=4033576, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=4033576, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_cmap.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=18444, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=18444, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_setpd.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=38487, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=38487, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_fapi.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=15611, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=15611, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/FAPIfontmap", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1468, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1468, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/FAPIcidfmap", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1483, ...}, AT_EMPTY_PATH) = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=1483, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_typ32.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4560, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=4560, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_frsd.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3780, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3780, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/gs_ll3.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=19572, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=19572, ...}, AT_EMPTY_PATH) = 0
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Init/IdiomSet", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/lib/IdiomSet", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/Resource/Font/IdiomSet", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/share/ghostscript/fonts/IdiomSet", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x3), ...}, AT_EMPTY_PATH) = 0
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
+++ exited with 1 +++

Looks like some files are still missing and I cannot figure out from where take those missing files :/
May I ask you to check what above strace command shows you on your system?

@hugovk
Copy link
Member

hugovk commented Jun 7, 2021

I'm using Mac and there is no strace command.

@kloczek
Copy link
Author

kloczek commented Jun 7, 2021

And there is no any other method to check which one files is trying to open executed process?

@radarhere radarhere changed the title 8.2.0: pytest errrors 8.2.0: pytest errors Jun 8, 2021
@radarhere
Copy link
Member

radarhere commented Jun 10, 2021

I've created PR #5533 as a suggestion to fix the DecompressionBombError. It also fixes different "DID NOT RAISE <class 'OSError'" errors - they may have the same cause as yours.

@radarhere
Copy link
Member

@kloczek would you be able to give my PR a try, and see if it resolves your non-Ghostscript problems?

@kloczek
Copy link
Author

kloczek commented Jun 10, 2021

OK .. one sec.

@kloczek
Copy link
Author

kloczek commented Jun 10, 2021

Full pytest output woithout desellecting currently failing units

[tkloczko@barrel SPECS]$ rpmbuild -ba --with check python-pillow.spec --without failing_tests
warning: Downloading https://github.com/python-pillow/Pillow//archive/8.2.0/Pillow-8.2.0.tar.gz to /home/tkloczko/rpmbuild/SOURCES/Pillow-8.2.0.tar.gz
warning: Downloading https://github.com/python-pillow/Pillow//pull/5533.patch#/python-pillow-Fixed-errors-when-running-tests-in-random-order.patch to /home/tkloczko/rpmbuild/SOURCES/python-pillow-Fixed-errors-when-running-tests-in-random-order.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eh0yz5
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd /home/tkloczko/rpmbuild/BUILD
+ rm -rf Pillow-8.2.0
+ /usr/bin/gzip -dc /home/tkloczko/rpmbuild/SOURCES/Pillow-8.2.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Pillow-8.2.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-pillow-man3_level.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ /usr/bin/cat /home/tkloczko/rpmbuild/SOURCES/python-pillow-Fixed-errors-when-running-tests-in-random-order.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
+ RPM_EC=0

[..]

+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/Pillow-8.2.0, configfile: setup.cfg, testpaths: Tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, pyfakefs-4.5.0, hypothesis-6.13.14, cases-3.6.1
collected 2699 items / 1 skipped / 2698 selected

Tests/test_000_sanity.py .                                                                                                                                           [  0%]
Tests/test_binary.py ...                                                                                                                                             [  0%]
Tests/test_bmp_reference.py ...                                                                                                                                      [  0%]
Tests/test_box_blur.py ..............                                                                                                                                [  0%]
Tests/test_color_lut.py ..........................                                                                                                                   [  1%]
Tests/test_core_resources.py ..............                                                                                                                          [  2%]
Tests/test_decompression_bomb.py ....x....                                                                                                                           [  2%]
Tests/test_features.py ..............                                                                                                                                [  3%]
Tests/test_file_apng.py ....................                                                                                                                         [  3%]
Tests/test_file_blp.py ..........                                                                                                                                    [  4%]
Tests/test_file_bmp.py ...........                                                                                                                                   [  4%]
Tests/test_file_bufrstub.py ....                                                                                                                                     [  4%]
Tests/test_file_container.py ..........                                                                                                                              [  5%]
Tests/test_file_cur.py ..                                                                                                                                            [  5%]
Tests/test_file_dcx.py .........                                                                                                                                     [  5%]
Tests/test_file_dds.py ..............                                                                                                                                [  6%]
Tests/test_file_eps.py F.FFFFF.FFFF...F.                                                                                                                             [  6%]
Tests/test_file_fitsstub.py ....                                                                                                                                     [  6%]
Tests/test_file_fli.py ............                                                                                                                                  [  7%]
Tests/test_file_fpx.py ..                                                                                                                                            [  7%]
Tests/test_file_ftex.py ..                                                                                                                                           [  7%]
Tests/test_file_gbr.py ...                                                                                                                                           [  7%]
Tests/test_file_gd.py ...                                                                                                                                            [  7%]
Tests/test_file_gif.py ....................................................                                                                                          [  9%]
Tests/test_file_gimpgradient.py ..........                                                                                                                           [  9%]
Tests/test_file_gimppalette.py ..                                                                                                                                    [ 10%]
Tests/test_file_gribstub.py ....                                                                                                                                     [ 10%]
Tests/test_file_hdf5stub.py ....                                                                                                                                     [ 10%]
Tests/test_file_icns.py .sss......                                                                                                                                   [ 10%]
Tests/test_file_ico.py .........                                                                                                                                     [ 11%]
Tests/test_file_im.py ............                                                                                                                                   [ 11%]
Tests/test_file_iptc.py .....                                                                                                                                        [ 11%]
Tests/test_file_jpeg.py .............................................................s                                                                               [ 13%]
Tests/test_file_jpeg2k.py .............................                                                                                                              [ 15%]
Tests/test_file_libtiff.py .................................................................                                                                         [ 17%]
Tests/test_file_libtiff_small.py ...                                                                                                                                 [ 17%]
Tests/test_file_mcidas.py ..                                                                                                                                         [ 17%]
Tests/test_file_mic.py ......                                                                                                                                        [ 17%]
Tests/test_file_mpo.py ..................                                                                                                                            [ 18%]
Tests/test_file_msp.py ....ss.                                                                                                                                       [ 18%]
Tests/test_file_palm.py .x..                                                                                                                                         [ 18%]
Tests/test_file_pcd.py .                                                                                                                                             [ 18%]
Tests/test_file_pcx.py .............                                                                                                                                 [ 19%]
Tests/test_file_pdf.py .............                                                                                                                                 [ 19%]
Tests/test_file_pixar.py ..                                                                                                                                          [ 20%]
Tests/test_file_png.py .................................................                                                                                             [ 21%]
Tests/test_file_ppm.py .......                                                                                                                                       [ 22%]
Tests/test_file_psd.py .................                                                                                                                             [ 22%]
Tests/test_file_sgi.py ..........                                                                                                                                    [ 23%]
Tests/test_file_spider.py ................                                                                                                                           [ 23%]
Tests/test_file_sun.py ..s                                                                                                                                           [ 23%]
Tests/test_file_tar.py ....                                                                                                                                          [ 23%]
Tests/test_file_tga.py .........                                                                                                                                     [ 24%]
Tests/test_file_tiff.py ......................................................ss                                                                                     [ 26%]
Tests/test_file_tiff_metadata.py .................                                                                                                                   [ 26%]
Tests/test_file_wal.py .                                                                                                                                             [ 27%]
Tests/test_file_webp.py .............                                                                                                                                [ 27%]
Tests/test_file_webp_alpha.py ....                                                                                                                                   [ 27%]
Tests/test_file_webp_animated.py ......                                                                                                                              [ 27%]
Tests/test_file_webp_lossless.py .                                                                                                                                   [ 27%]
Tests/test_file_webp_metadata.py .......                                                                                                                             [ 28%]
Tests/test_file_wmf.py .....                                                                                                                                         [ 28%]
Tests/test_file_xbm.py .....                                                                                                                                         [ 28%]
Tests/test_file_xpm.py ...                                                                                                                                           [ 28%]
Tests/test_file_xvthumb.py ...                                                                                                                                       [ 28%]
Tests/test_font_bdf.py ..                                                                                                                                            [ 28%]
Tests/test_font_leaks.py ..                                                                                                                                          [ 28%]
Tests/test_font_pcf.py .....                                                                                                                                         [ 29%]
Tests/test_font_pcf_charsets.py .........                                                                                                                            [ 29%]
Tests/test_format_hsv.py ....                                                                                                                                        [ 29%]
Tests/test_format_lab.py ...                                                                                                                                         [ 29%]
Tests/test_image.py ...................................................................                                                                              [ 32%]
Tests/test_image_access.py ................................s                                                                                                         [ 33%]
Tests/test_image_array.py ..                                                                                                                                         [ 33%]
Tests/test_image_convert.py ................                                                                                                                         [ 34%]
Tests/test_image_copy.py ..                                                                                                                                          [ 34%]
Tests/test_image_crop.py ......                                                                                                                                      [ 34%]
Tests/test_image_draft.py ...                                                                                                                                        [ 34%]
Tests/test_image_entropy.py .                                                                                                                                        [ 34%]
Tests/test_image_filter.py .........                                                                                                                                 [ 34%]
Tests/test_image_frombytes.py .                                                                                                                                      [ 34%]
Tests/test_image_fromqimage.py sssss                                                                                                                                 [ 35%]
Tests/test_image_getbands.py .                                                                                                                                       [ 35%]
Tests/test_image_getbbox.py ..                                                                                                                                       [ 35%]
Tests/test_image_getcolors.py ..                                                                                                                                     [ 35%]
Tests/test_image_getdata.py ..                                                                                                                                       [ 35%]
Tests/test_image_getextrema.py ..                                                                                                                                    [ 35%]
Tests/test_image_getim.py .                                                                                                                                          [ 35%]
Tests/test_image_getpalette.py .                                                                                                                                     [ 35%]
Tests/test_image_getprojection.py .                                                                                                                                  [ 35%]
Tests/test_image_histogram.py .                                                                                                                                      [ 35%]
Tests/test_image_load.py .....                                                                                                                                       [ 35%]
Tests/test_image_mode.py ..                                                                                                                                          [ 35%]
Tests/test_image_paste.py ...........                                                                                                                                [ 36%]
Tests/test_image_point.py ....                                                                                                                                       [ 36%]
Tests/test_image_putalpha.py ...                                                                                                                                     [ 36%]
Tests/test_image_putdata.py .......                                                                                                                                  [ 36%]
Tests/test_image_putpalette.py ...                                                                                                                                   [ 36%]
Tests/test_image_quantize.py ........                                                                                                                                [ 37%]
Tests/test_image_reduce.py ............                                                                                                                              [ 37%]
Tests/test_image_resample.py .................xx.................                                                                                                    [ 38%]
Tests/test_image_resize.py ...............                                                                                                                           [ 39%]
Tests/test_image_rotate.py ..............                                                                                                                            [ 39%]
Tests/test_image_split.py ...                                                                                                                                        [ 40%]
Tests/test_image_thumbnail.py ........                                                                                                                               [ 40%]
Tests/test_image_tobitmap.py .                                                                                                                                       [ 40%]
Tests/test_image_tobytes.py .                                                                                                                                        [ 40%]
Tests/test_image_transform.py .......................................                                                                                                [ 41%]
Tests/test_image_transpose.py ........                                                                                                                               [ 42%]
Tests/test_imagechops.py ..............................                                                                                                              [ 43%]
Tests/test_imagecms.py ............................                                                                                                                  [ 44%]
Tests/test_imagecolor.py ....                                                                                                                                        [ 44%]
Tests/test_imagedraw.py ....................................................................s............................                                            [ 48%]
Tests/test_imagedraw2.py ................                                                                                                                            [ 48%]
Tests/test_imageenhance.py ...                                                                                                                                       [ 48%]
Tests/test_imagefile.py F................                                                                                                                            [ 49%]
Tests/test_imagefont.py ............................................................................................................................................ [ 54%]
.................                                                                                                                                                    [ 55%]
Tests/test_imagefontctl.py ......................................ss........................................                                                          [ 58%]
Tests/test_imagegrab.py sss..ss                                                                                                                                      [ 58%]
Tests/test_imagemath.py ......................                                                                                                                       [ 59%]
Tests/test_imagemorph.py ..................                                                                                                                          [ 59%]
Tests/test_imageops.py ...................                                                                                                                           [ 60%]
Tests/test_imageops_usm.py .....                                                                                                                                     [ 60%]
Tests/test_imagepalette.py ...........                                                                                                                               [ 61%]
Tests/test_imagepath.py ...........                                                                                                                                  [ 61%]
Tests/test_imageqt.py sss                                                                                                                                            [ 61%]
Tests/test_imagesequence.py ........                                                                                                                                 [ 62%]
Tests/test_imageshow.py ....s..s                                                                                                                                     [ 62%]
Tests/test_imagestat.py ...                                                                                                                                          [ 62%]
Tests/test_imagetk.py ssss                                                                                                                                           [ 62%]
Tests/test_imagewin.py ...sssss                                                                                                                                      [ 62%]
Tests/test_lib_image.py .                                                                                                                                            [ 62%]
Tests/test_lib_pack.py ....................................                                                                                                          [ 64%]
Tests/test_locale.py .                                                                                                                                               [ 64%]
Tests/test_main.py .                                                                                                                                                 [ 64%]
Tests/test_map.py ...                                                                                                                                                [ 64%]
Tests/test_mode_i16.py ...                                                                                                                                           [ 64%]
Tests/test_numpy.py .............                                                                                                                                    [ 65%]
Tests/test_pdfparser.py ....                                                                                                                                         [ 65%]
Tests/test_pickle.py ...............                                                                                                                                 [ 65%]
Tests/test_psdraw.py ..                                                                                                                                              [ 65%]
Tests/test_qt_image_qapplication.py s                                                                                                                                [ 65%]
Tests/test_qt_image_toqimage.py s                                                                                                                                    [ 65%]
Tests/test_sgi_crash.py ...........                                                                                                                                  [ 66%]
Tests/test_shell_injection.py ....                                                                                                                                   [ 66%]
Tests/test_tiff_crashes.py ss.............                                                                                                                           [ 67%]
Tests/test_tiff_ifdrational.py ....                                                                                                                                  [ 67%]
Tests/test_util.py ......                                                                                                                                            [ 67%]
Tests/test_webp_leaks.py .                                                                                                                                           [ 67%]
Tests/oss-fuzz/test_fuzzers.py .........................................................................................F........................................... [ 72%]
.................................................................................................................................................................... [ 78%]
.............................................................................................................................................................FFFF... [ 84%]
.................................................................................................................................F....................F............. [ 90%]
..F................................................................................................................................................................. [ 96%]
.....................................................F.F..................................                                                                           [100%]

================================================================================= FAILURES =================================================================================
_______________________________________________________________________________ test_sanity ________________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_sanity():
        # Regular scale
        with Image.open(FILE1) as image1:
>           image1.load()

Tests/test_file_eps.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpbwlvshxl', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________________________ test_cmyk _________________________________________________________________________________

    @pytest.mark.valgrind_known_error(reason="Known Failing")
    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_cmyk():
        with Image.open("Tests/images/pil_sample_cmyk.eps") as cmyk_image:

            assert cmyk_image.mode == "CMYK"
            assert cmyk_image.size == (100, 100)
            assert cmyk_image.format == "EPS"

>           cmyk_image.load()

Tests/test_file_eps.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpei5pstj5', '-c', '0 0 translate', '-f', 'Tests/images/pil_sample_cmyk.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_showpage _______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_showpage():
        # See https://github.com/python-pillow/Pillow/issues/2615
        with Image.open("Tests/images/reqd_showpage.eps") as plot_image:
            with Image.open("Tests/images/reqd_showpage.png") as target:
                # should not crash/hang
>               plot_image.load()

Tests/test_file_eps.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmplrd2f2os', '-c', '0 0 translate', '-f', 'Tests/images/reqd_showpage.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________________________ test_file_object _____________________________________________________________________________

tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-47/test_file_object0')

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_file_object(tmp_path):
        # issue 479
        with Image.open(FILE1) as image1:
            with open(str(tmp_path / "temp.eps"), "wb") as fh:
>               image1.save(fh, "EPS")

Tests/test_file_eps.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
    self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
    self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3cvynlgo', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_iobase_object ____________________________________________________________________________

tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-47/test_iobase_object0')

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_iobase_object(tmp_path):
        # issue 479
        with Image.open(FILE1) as image1:
            with open(str(tmp_path / "temp_iobase.eps"), "wb") as fh:
>               image1.save(fh, "EPS")

Tests/test_file_eps.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
    self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
    self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3p2y_h9w', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________________________ test_bytesio_object ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_bytesio_object():
        with open(FILE1, "rb") as f:
            img_bytes = io.BytesIO(f.read())

        with Image.open(img_bytes) as img:
>           img.load()

Tests/test_file_eps.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpuu1tpngv', '-c', '0 0 translate', '-f', '/tmp/tmpgm910ckj', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale1 ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    @skip_unless_feature("zlib")
    def test_render_scale1():
        # We need png support for these render test

        # Zero bounding box
        with Image.open(FILE1) as image1_scale1:
>           image1_scale1.load()

Tests/test_file_eps.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpc78ozpvf', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale2 ____________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    @skip_unless_feature("zlib")
    def test_render_scale2():
        # We need png support for these render test

        # Zero bounding box
        with Image.open(FILE1) as image1_scale2:
>           image1_scale2.load(scale=2)

Tests/test_file_eps.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpzz_t6ucs', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_______________________________________________________________________________ test_resize ________________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_resize():
        files = [FILE1, FILE2, "Tests/images/illu10_preview.eps"]
        for fn in files:
            with Image.open(fn) as im:
                new_size = (100, 100)
>               im = im.resize(new_size)

Tests/test_file_eps.py:183:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp32os27jo', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_thumbnail ______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_thumbnail():
        # Issue #619
        # Arrange
        files = [FILE1, FILE2]
        for fn in files:
            with Image.open(FILE1) as im:
                new_size = (100, 100)
>               im.thumbnail(new_size)

Tests/test_file_eps.py:195:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2344: in thumbnail
    im = self.resize(size, resample, box=box, reducing_gap=reducing_gap)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
    self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp094t50fi', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_emptyline ______________________________________________________________________________

    @pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
    def test_emptyline():
        # Test file includes an empty line in the header data
        emptyline_file = "Tests/images/zero_bb_emptyline.eps"

        with Image.open(emptyline_file) as image:
>           image.load()

Tests/test_file_eps.py:263:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpzb2jy_r0', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb_emptyline.eps', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________________ TestImageFile.test_parser _________________________________________________________________________

self = <Tests.test_imagefile.TestImageFile object at 0x7f5f24ae61c0>

    def test_parser(self):
        def roundtrip(format):

            im = hopper("L").resize((1000, 1000), Image.NEAREST)
            if format in ("MSP", "XBM"):
                im = im.convert("1")

            test_file = BytesIO()

            im.copy().save(test_file, format)

            data = test_file.getvalue()

            parser = ImageFile.Parser()
            parser.feed(data)
            imOut = parser.close()

            return im, imOut

        assert_image_equal(*roundtrip("BMP"))
        im1, im2 = roundtrip("GIF")
        assert_image_similar(im1.convert("P"), im2, 1)
        assert_image_equal(*roundtrip("IM"))
        assert_image_equal(*roundtrip("MSP"))
        if features.check("zlib"):
            try:
                # force multiple blocks in PNG driver
                ImageFile.MAXBLOCK = 8192
                assert_image_equal(*roundtrip("PNG"))
            finally:
                ImageFile.MAXBLOCK = MAXBLOCK
        assert_image_equal(*roundtrip("PPM"))
        assert_image_equal(*roundtrip("TIFF"))
        assert_image_equal(*roundtrip("XBM"))
        assert_image_equal(*roundtrip("TGA"))
        assert_image_equal(*roundtrip("PCX"))

        if EpsImagePlugin.has_ghostscript():
>           im1, im2 = roundtrip("EPS")

Tests/test_imagefile.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/test_imagefile.py:38: in roundtrip
    imOut = parser.close()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/ImageFile.py:471: in close
    self.image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpx6srtw3f', '-c', '0 0 translate', '-f', '/tmp/tmpe13gck98', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/binary_preview_map.eps] ___________________________________________________________

path = b'Tests/images/binary_preview_map.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpp0kzrlxi', '-c', '0 0 translate', '-f', '/tmp/tmp4i7ag4ie', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/illu10_no_preview.eps] ___________________________________________________________

path = b'Tests/images/illu10_no_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpm0hoiuud', '-c', '0 0 translate', '-f', '/tmp/tmp95qzl0rf', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illu10_preview.eps] _____________________________________________________________

path = b'Tests/images/illu10_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpn6ehdq82', '-c', '0 0 translate', '-f', '/tmp/tmp40ne2m94', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/illuCS6_no_preview.eps] ___________________________________________________________

path = b'Tests/images/illuCS6_no_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp9ewtvqdv', '-c', '0 0 translate', '-f', '/tmp/tmppw3bhx32', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illuCS6_preview.eps] ____________________________________________________________

path = b'Tests/images/illuCS6_preview.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp_9pjfe0p', '-c', '0 0 translate', '-f', '/tmp/tmpjwwbn5zb', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________ test_fuzz_images[Tests/images/non_zero_bb.eps] ______________________________________________________________

path = b'Tests/images/non_zero_bb.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp9sxdih6u', '-c', '-50 -50 translate', '-f', '/tmp/tmpj3mxc2xp', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/pil_sample_cmyk.eps] ____________________________________________________________

path = b'Tests/images/pil_sample_cmyk.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpyf87nito', '-c', '0 0 translate', '-f', '/tmp/tmpwpr3yunu', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________ test_fuzz_images[Tests/images/reqd_showpage.eps] _____________________________________________________________

path = b'Tests/images/reqd_showpage.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp1cean3ps', '-c', '0 0 translate', '-f', '/tmp/tmp4zxltf8y', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________ test_fuzz_images[Tests/images/zero_bb.eps] ________________________________________________________________

path = b'Tests/images/zero_bb.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpis6016kp', '-c', '0 0 translate', '-f', '/tmp/tmp01spi9tt', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/zero_bb_emptyline.eps] ___________________________________________________________

path = b'Tests/images/zero_bb_emptyline.eps'

    @pytest.mark.parametrize(
        "path",
        subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
    )
    def test_fuzz_images(path):
        fuzzers.enable_decompressionbomb_error()
        try:
            with open(path, "rb") as f:
>               fuzzers.fuzz_image(f.read())

Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:22: in fuzz_image
    im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
    return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
    im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
    image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
    self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
    subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpci8hqfv9', '-c', '0 0 translate', '-f', '/tmp/tmpu0pp4m6t', '-c', 'showpage']' returned non-zero exit status 1.

/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
   (gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps)   (gs_ll3.ps)   1   --nostringval--   --nostringval--   9   --nostringval--   37   (%{datadir}/fonts/urw-base35/IdiomSet/*)   --nostringval--   (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   --nostringval--   resourceforall   %loop_continue   resourceforall   resourceforall   resourceforall   false   1   %stopped_push   --nostringval--   1902   7   5   %oparray_pop   resourceforall   resourceforall   10   2   13   resourceforall   %for_pos_int_continue   resourceforall
Dictionary stack:
   --dict:943/1123(G)--   --dict:0/20(G)--   --dict:71/200(L)--   --dict:943/1123(G)--   --dict:38/43(G)--   --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
============================================================================= warnings summary =============================================================================
Tests/test_map.py::test_tobytes
  /home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2855: DecompressionBombWarning: Image size (151587072 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
    warnings.warn(

Tests/test_tiff_crashes.py: 11 warnings
  /home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/TiffImagePlugin.py:793: UserWarning: Truncated File Read
    warnings.warn(str(msg))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] Tests/test_pyroma.py:5: Pyroma not installed
SKIPPED [1] Tests/test_file_icns.py:31: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:44: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:60: Requires macOS
SKIPPED [1] Tests/test_file_jpeg.py:819: Windows only
SKIPPED [1] Tests/test_file_msp.py:58: Extra image files not installed
SKIPPED [1] Tests/test_file_msp.py:72: Even More Extra image files not installed
SKIPPED [1] Tests/test_file_sun.py:35: Extra image files not installed
SKIPPED [1] Tests/test_file_tiff.py:621: Extra image files not installed
SKIPPED [1] Tests/test_file_tiff.py:635: Windows only
SKIPPED [1] Tests/test_image_access.py:380: Failing on AppVeyor / GitHub Actions when run from subprocess, not from shell
SKIPPED [1] Tests/test_image_fromqimage.py:38: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:43: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:48: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:53: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:58: Qt bindings are not installed
SKIPPED [1] Tests/test_imagedraw.py:921: failing
SKIPPED [2] Tests/test_imagefontctl.py:238: fails with this font
SKIPPED [1] Tests/test_imagegrab.py:13: requires Windows or macOS
SKIPPED [1] Tests/test_imagegrab.py:37: X connection failed: error 5
SKIPPED [1] Tests/test_imagegrab.py:39: tests missing XCB
SKIPPED [1] Tests/test_imagegrab.py:77: Windows only
SKIPPED [1] Tests/test_imagegrab.py:87: Windows only
SKIPPED [1] Tests/test_imageqt.py:15: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:44: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:49: Qt bindings are not installed
SKIPPED [1] Tests/test_imageshow.py:44: Only run on CIs; hangs on Windows CIs
SKIPPED [1] Tests/test_imageshow.py:72: IPython not installed
SKIPPED [4] Tests/test_imagetk.py:30: TCL Error: no display name and no $DISPLAY environment variable
SKIPPED [1] Tests/test_imagewin.py:37: Windows only
SKIPPED [1] Tests/test_imagewin.py:47: Windows only
SKIPPED [1] Tests/test_imagewin.py:58: Windows only
SKIPPED [1] Tests/test_imagewin.py:72: Windows only
SKIPPED [1] Tests/test_imagewin.py:87: Windows only
SKIPPED [1] Tests/test_qt_image_qapplication.py:50: Qt bindings are not installed
SKIPPED [1] Tests/test_qt_image_toqimage.py:15: Qt bindings are not installed
SKIPPED [2] Tests/test_tiff_crashes.py:49: test image not found
XFAIL Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_ico
  different exception
XFAIL Tests/test_file_palm.py::test_p_mode
  Palm P image is wrong
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_rgba
  Current implementation isn't precise enough
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_la
  Current implementation isn't precise enough
FAILED Tests/test_file_eps.py::test_sanity - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_cmyk - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', ...
FAILED Tests/test_file_eps.py::test_showpage - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFE...
FAILED Tests/test_file_eps.py::test_file_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dS...
FAILED Tests/test_file_eps.py::test_iobase_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_bytesio_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '...
FAILED Tests/test_file_eps.py::test_render_scale1 - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_render_scale2 - subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...
FAILED Tests/test_file_eps.py::test_resize - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_thumbnail - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_file_eps.py::test_emptyline - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_imagefile.py::TestImageFile::test_parser - subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dN...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.00000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000...
=================================================== 22 failed, 2632 passed, 42 skipped, 4 xfailed, 12 warnings in 46.91s ===================================================

@kloczek
Copy link
Author

kloczek commented Jun 10, 2021

Still cannot figure out what is wrong with gs.
In meantime I've tested pillow build using my rpm spec file on Fedora and result is the same :/

@kloczek
Copy link
Author

kloczek commented Jun 10, 2021

BTW. There are few C compile time warnings. Most importand are tjose -Wformat=

src/libImaging/TiffDecode.h:35:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   35 |     uint32 ifd; /* offset of the ifd, used for multipage
      |     ^~~~~~
src/libImaging/TiffDecode.h:45:1: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   45 | ImagingLibTiffInit(ImagingCodecState state, int fp, uint32 offset);
      | ^~~~~~~~~~~~~~~~~~
src/decode.c: In function ‘PyImaging_LibTiffDecoderNew’:
src/decode.c:502:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  502 |     uint32 ifdoffset;
      |     ^~~~~~
In file included from src/encode.c:627:
src/libImaging/TiffDecode.h:35:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   35 |     uint32 ifd; /* offset of the ifd, used for multipage
      |     ^~~~~~
src/libImaging/TiffDecode.h:45:1: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   45 | ImagingLibTiffInit(ImagingCodecState state, int fp, uint32 offset);
      | ^~~~~~~~~~~~~~~~~~
src/libImaging/Geometry.c:1135:12: warning: argument 8 of type ‘double[8]’ with mismatched bound [-Warray-parameter=]
 1135 |     double a[8],
      |     ~~~~~~~^~~~
In file included from src/libImaging/Geometry.c:1:
src/libImaging/Imaging.h:373:13: note: previously declared as ‘double *’
  373 |     double *a,
      |     ~~~~~~~~^
In file included from src/libImaging/TiffDecode.c:21:
src/libImaging/TiffDecode.h:35:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   35 |     uint32 ifd; /* offset of the ifd, used for multipage
      |     ^~~~~~
src/libImaging/TiffDecode.h:45:1: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
   45 | ImagingLibTiffInit(ImagingCodecState state, int fp, uint32 offset);
      | ^~~~~~~~~~~~~~~~~~
src/libImaging/TiffDecode.c: In function ‘_tiffReadProc’:
src/libImaging/TiffDecode.c:59:60: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘toff_t’ {aka ‘long unsigned int’} [-Wformat=]
   59 |         TIFFError("_tiffReadProc", "Invalid Read at loc %llu, eof: %llu", state->loc, state->eof);
      |                                                         ~~~^              ~~~~~~~~~~
      |                                                            |                   |
      |                                                            |                   toff_t {aka long unsigned int}
      |                                                            long long unsigned int
      |                                                         %lu
src/libImaging/TiffDecode.c:59:71: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘toff_t’ {aka ‘long unsigned int’} [-Wformat=]
   59 |         TIFFError("_tiffReadProc", "Invalid Read at loc %llu, eof: %llu", state->loc, state->eof);
      |                                                                    ~~~^               ~~~~~~~~~~
      |                                                                       |                    |
      |                                                                       |                    toff_t {aka long unsigned int}
      |                                                                       long long unsigned int
      |                                                                    %lu
src/libImaging/TiffDecode.c: At top level:
src/libImaging/TiffDecode.c:184:1: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  184 | ImagingLibTiffInit(ImagingCodecState state, int fp, uint32 offset) {
      | ^~~~~~~~~~~~~~~~~~
src/libImaging/TiffDecode.c:216:1: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  216 | _pickUnpackers(Imaging im, ImagingCodecState state, TIFF *tiff, uint16 planarconfig, ImagingShuffler *unpackers) {
      | ^~~~~~~~~~~~~~
src/libImaging/TiffDecode.c: In function ‘_pickUnpackers’:
src/libImaging/TiffDecode.c:219:9: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  219 |         uint16 bits_per_sample = 8;
      |         ^~~~~~
src/libImaging/TiffDecode.c: In function ‘ImagingLibTiffDecode’:
src/libImaging/TiffDecode.c:548:5: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  548 |     uint16 photometric = 0;  // init to not PHOTOMETRIC_YCBCR
      |     ^~~~~~
src/libImaging/TiffDecode.c:549:5: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  549 |     uint16 compression;
      |     ^~~~~~
src/libImaging/TiffDecode.c:551:5: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  551 |     uint16 planarconfig = 0;
      |     ^~~~~~
src/libImaging/TiffDecode.c:642:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  642 |         uint32 ifdoffset = clientstate->ifd;
      |         ^~~~~~
src/libImaging/TiffDecode.c:700:17: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  700 |                 uint16 extrasamples;
      |                 ^~~~~~
src/libImaging/TiffDecode.c:701:17: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations]
  701 |                 uint16* sampleinfo;
      |                 ^~~~~~
src/libImaging/TiffDecode.c: In function ‘ImagingLibTiffMergeFieldInfo’:
src/libImaging/TiffDecode.c:813:5: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  813 |     uint32 n;
      |     ^~~~~~
src/libImaging/TiffDecode.c: In function ‘ImagingLibTiffEncode’:
src/libImaging/TiffDecode.c:936:21: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations]
  936 |                     tiff, (tdata_t)(state->buffer), (uint32)state->y, 0) == -1) {
      |                     ^~~~

@radarhere
Copy link
Member

Cool, so my PR fixes the non-Ghostscript errors.

The uin16/uint32 TIFF deprecations should already be fixed in master by #5458
I've created #5534 to fix the "mismatched bound" warning, and #5535 to fix the Wformat warnings.

@radarhere
Copy link
Member

@kloczek all of those PRs have now been merged, so the only thing left should be your local problem with Ghostscript. How do you feel about closing this issue?

@kloczek
Copy link
Author

kloczek commented Jun 15, 2021

If it is ably about something with my sg feel free to close this ticket.
(still did not found what is wrong with my and fedora gs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants