* Package:    media-gfx/img2pdf-0.4.1-r1
 * Repository: local
 * Maintainer: sir.suriv@gmail.com proxy-maint@gentoo.org
 * Upstream:   josch@mister-muffin.de https://gitlab.mister-muffin.de/josch/img2pdf/issues
 * USE:        abi_x86_64 amd64 elibc_glibc gui kernel_linux python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox
 * Package:    media-gfx/img2pdf-0.4.1-r1
 * Repository: local
 * Maintainer: sir.suriv@gmail.com proxy-maint@gentoo.org
 * Upstream:   josch@mister-muffin.de https://gitlab.mister-muffin.de/josch/img2pdf/issues
 * USE:        abi_x86_64 amd64 elibc_glibc gui kernel_linux python_targets_python3_10 python_targets_python3_8 python_targets_python3_9 test userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox splitdebug test userpriv usersandbox
>>> Unpacking source...
>>> Unpacking img2pdf-0.4.1.tar.gz to /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work
>>> Unpacking img2pdf-0.4.1-imagemagick-7-tests.patch.gz to /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work
>>> Source unpacked in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work
>>> Preparing source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ...
 * Applying img2pdf-0.4.1-imagemagick-7-tests.patch ...
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1 ...
 * python3_8: running distutils-r1_run_phase distutils-r1_python_compile
python3.8 setup.py build -j 17
running build
running build_py
copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_8/lib
copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_8/lib
running egg_info
writing src/img2pdf.egg-info/PKG-INFO
writing dependency_links to src/img2pdf.egg-info/dependency_links.txt
writing entry points to src/img2pdf.egg-info/entry_points.txt
writing requirements to src/img2pdf.egg-info/requires.txt
writing top-level names to src/img2pdf.egg-info/top_level.txt
reading manifest file 'src/img2pdf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/usr/lib/python3.8/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
warning: no files found matching 'test.sh'
warning: no files found matching 'magick.py'
adding license file 'LICENSE'
writing manifest file 'src/img2pdf.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 17
/usr/lib/python3.9/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
running build
running build_py
copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_9/lib
copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_9/lib
running egg_info
writing src/img2pdf.egg-info/PKG-INFO
writing dependency_links to src/img2pdf.egg-info/dependency_links.txt
writing entry points to src/img2pdf.egg-info/entry_points.txt
writing requirements to src/img2pdf.egg-info/requires.txt
writing top-level names to src/img2pdf.egg-info/top_level.txt
reading manifest file 'src/img2pdf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'test.sh'
warning: no files found matching 'magick.py'
adding license file 'LICENSE'
writing manifest file 'src/img2pdf.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

 * python3_10: running distutils-r1_run_phase distutils-r1_python_compile
python3.10 setup.py build -j 17
/usr/lib/python3.10/site-packages/setuptools/dist.py:697: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
  warnings.warn(
running build
running build_py
copying src/img2pdf.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_10/lib
copying src/jp2.py -> /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1-python3_10/lib
running egg_info
writing src/img2pdf.egg-info/PKG-INFO
writing dependency_links to src/img2pdf.egg-info/dependency_links.txt
writing entry points to src/img2pdf.egg-info/entry_points.txt
writing requirements to src/img2pdf.egg-info/requires.txt
writing top-level names to src/img2pdf.egg-info/top_level.txt
reading manifest file 'src/img2pdf.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'test.sh'
warning: no files found matching 'magick.py'
adding license file 'LICENSE'
writing manifest file 'src/img2pdf.egg-info/SOURCES.txt'
warning: build_py: byte-compiling is disabled, skipping.

>>> Source compiled.
>>> Test phase: media-gfx/img2pdf-0.4.1-r1
 * python3_8: running distutils-r1_run_phase python_test
python3.8 -m pytest -vv -ra -l -Wdefault -n auto
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.11, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3.8
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1/.hypothesis/examples')
rootdir: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1
plugins: mock-3.6.1, httpbin-1.0.0, anyio-3.2.1, httpx-0.12.1, xdist-2.3.0, django-4.4.0, forked-1.3.0, asyncio-0.15.1, pkgcore-0.12.2, hypothesis-6.14.7, requests-mock-1.9.3
gw0 I / gw1 I / gw2 I / gw3 I / gw4 I / gw5 I / gw6 I / gw7 I

[gw0] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw1] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw2] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw3] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw4] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw5] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw6] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw7] linux Python 3.8.11 cwd: /var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1

[gw0] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw1] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw2] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw4] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw3] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw5] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw6] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]

[gw7] Python 3.8.11 (default, Aug  8 2021, 20:40:49)  -- [GCC 11.2.0]
gw0 [348] / gw1 [348] / gw2 [348] / gw3 [348] / gw4 [348] / gw5 [348] / gw6 [348] / gw7 [348]

scheduling tests via LoadScheduling

src/img2pdf_test.py::test_jpg_rot[pikepdf] 
src/img2pdf_test.py::test_jpg_cmyk[pikepdf] 
src/img2pdf_test.py::test_jpg[pdfrw] 
src/img2pdf_test.py::test_jpg[internal] 
src/img2pdf_test.py::test_jpg_rot[pdfrw] 
src/img2pdf_test.py::test_jpg[pikepdf] 
src/img2pdf_test.py::test_jpg_rot[internal] 
src/img2pdf_test.py::test_jpg_cmyk[internal] 
[gw2] [  0%] PASSED src/img2pdf_test.py::test_jpg[pdfrw] 
src/img2pdf_test.py::test_jpg_2000[pikepdf] 
[gw0] [  0%] PASSED src/img2pdf_test.py::test_jpg[internal] 
src/img2pdf_test.py::test_jpg_cmyk[pdfrw] 
[gw6] [  0%] PASSED src/img2pdf_test.py::test_jpg_cmyk[internal] 
src/img2pdf_test.py::test_png_rgb8[pdfrw] 
[gw1] [  1%] PASSED src/img2pdf_test.py::test_jpg[pikepdf] 
src/img2pdf_test.py::test_jpg_2000[internal] 
[gw7] [  1%] PASSED src/img2pdf_test.py::test_jpg_cmyk[pikepdf] 
src/img2pdf_test.py::test_png_rgb16[internal] 
[gw5] [  1%] PASSED src/img2pdf_test.py::test_jpg_rot[pdfrw] 
src/img2pdf_test.py::test_png_rgb8[pikepdf] 
[gw3] [  2%] PASSED src/img2pdf_test.py::test_jpg_rot[pikepdf] 
src/img2pdf_test.py::test_png_rgb8[internal] 
[gw4] [  2%] PASSED src/img2pdf_test.py::test_jpg_rot[internal] 
src/img2pdf_test.py::test_jpg_2000[pdfrw] 
[gw2] [  2%] PASSED src/img2pdf_test.py::test_jpg_2000[pikepdf] 
src/img2pdf_test.py::test_png_rgba8[internal] 
[gw6] [  2%] PASSED src/img2pdf_test.py::test_png_rgb8[pdfrw] 
src/img2pdf_test.py::test_png_rgba16[pikepdf] 
[gw1] [  3%] PASSED src/img2pdf_test.py::test_jpg_2000[internal] 
src/img2pdf_test.py::test_png_rgb16[pdfrw] 
[gw7] [  3%] PASSED src/img2pdf_test.py::test_png_rgb16[internal] 
src/img2pdf_test.py::test_png_rgba16[pdfrw] 
[gw0] [  3%] PASSED src/img2pdf_test.py::test_jpg_cmyk[pdfrw] 
src/img2pdf_test.py::test_png_rgb16[pikepdf] 
[gw5] [  4%] PASSED src/img2pdf_test.py::test_png_rgb8[pikepdf] 
src/img2pdf_test.py::test_png_rgba16[internal] 
[gw3] [  4%] PASSED src/img2pdf_test.py::test_png_rgb8[internal] 
[gw4] [  4%] PASSED src/img2pdf_test.py::test_jpg_2000[pdfrw] 
src/img2pdf_test.py::test_png_rgba8[pdfrw] 
src/img2pdf_test.py::test_png_rgba8[pikepdf] 
[gw2] [  4%] PASSED src/img2pdf_test.py::test_png_rgba8[internal] 
src/img2pdf_test.py::test_png_gray8a[pdfrw] 
[gw6] [  5%] PASSED src/img2pdf_test.py::test_png_rgba16[pikepdf] 
src/img2pdf_test.py::test_png_interlaced[internal] 
[gw7] [  5%] PASSED src/img2pdf_test.py::test_png_rgba16[pdfrw] 
src/img2pdf_test.py::test_png_interlaced[pikepdf] 
[gw1] [  5%] PASSED src/img2pdf_test.py::test_png_rgb16[pdfrw] 
src/img2pdf_test.py::test_png_gray8a[pikepdf] 
[gw0] [  6%] PASSED src/img2pdf_test.py::test_png_rgb16[pikepdf] 
src/img2pdf_test.py::test_png_gray8a[internal] 
[gw5] [  6%] PASSED src/img2pdf_test.py::test_png_rgba16[internal] 
src/img2pdf_test.py::test_png_gray16a[pdfrw] 
[gw3] [  6%] PASSED src/img2pdf_test.py::test_png_rgba8[pdfrw] 
src/img2pdf_test.py::test_png_gray16a[pikepdf] 
[gw4] [  6%] PASSED src/img2pdf_test.py::test_png_rgba8[pikepdf] 
src/img2pdf_test.py::test_png_gray16a[internal] 
[gw2] [  7%] PASSED src/img2pdf_test.py::test_png_gray8a[pdfrw] 
src/img2pdf_test.py::test_png_gray1[pikepdf] 
[gw1] [  7%] PASSED src/img2pdf_test.py::test_png_gray8a[pikepdf] 
src/img2pdf_test.py::test_png_gray1[internal] 
[gw6] [  7%] PASSED src/img2pdf_test.py::test_png_interlaced[internal] 
src/img2pdf_test.py::test_png_gray2[pdfrw] 
[gw0] [  8%] PASSED src/img2pdf_test.py::test_png_gray8a[internal] 
src/img2pdf_test.py::test_png_interlaced[pdfrw] 
[gw7] [  8%] PASSED src/img2pdf_test.py::test_png_interlaced[pikepdf] 
src/img2pdf_test.py::test_png_gray4[internal] 
[gw5] [  8%] PASSED src/img2pdf_test.py::test_png_gray16a[pdfrw] 
src/img2pdf_test.py::test_png_gray2[pikepdf] 
[gw3] [  8%] PASSED src/img2pdf_test.py::test_png_gray16a[pikepdf] 
src/img2pdf_test.py::test_png_gray2[internal] 
[gw4] [  9%] PASSED src/img2pdf_test.py::test_png_gray16a[internal] 
src/img2pdf_test.py::test_png_gray1[pdfrw] 
[gw6] [  9%] PASSED src/img2pdf_test.py::test_png_gray2[pdfrw] 
src/img2pdf_test.py::test_png_gray16[pikepdf] 
[gw1] [  9%] PASSED src/img2pdf_test.py::test_png_gray1[internal] 
src/img2pdf_test.py::test_png_gray4[pdfrw] 
[gw2] [ 10%] PASSED src/img2pdf_test.py::test_png_gray1[pikepdf] 
src/img2pdf_test.py::test_png_gray8[internal] 
[gw0] [ 10%] PASSED src/img2pdf_test.py::test_png_interlaced[pdfrw] 
src/img2pdf_test.py::test_png_gray4[pikepdf] 
[gw3] [ 10%] PASSED src/img2pdf_test.py::test_png_gray2[internal] 
src/img2pdf_test.py::test_png_gray8[pdfrw] 
[gw5] [ 10%] PASSED src/img2pdf_test.py::test_png_gray2[pikepdf] 
src/img2pdf_test.py::test_png_gray16[internal] 
[gw7] [ 11%] PASSED src/img2pdf_test.py::test_png_gray4[internal] 
src/img2pdf_test.py::test_png_gray16[pdfrw] 
[gw4] [ 11%] PASSED src/img2pdf_test.py::test_png_gray1[pdfrw] 
src/img2pdf_test.py::test_png_gray8[pikepdf] 
[gw6] [ 11%] PASSED src/img2pdf_test.py::test_png_gray16[pikepdf] 
src/img2pdf_test.py::test_png_palette8[internal] 
[gw2] [ 12%] PASSED src/img2pdf_test.py::test_png_gray8[internal] 
src/img2pdf_test.py::test_png_palette2[internal] 
[gw0] [ 12%] PASSED src/img2pdf_test.py::test_png_gray4[pikepdf] 
src/img2pdf_test.py::test_png_palette1[internal] 
[gw5] [ 12%] PASSED src/img2pdf_test.py::test_png_gray16[internal] 
src/img2pdf_test.py::test_png_palette4[pikepdf] 
[gw3] [ 12%] PASSED src/img2pdf_test.py::test_png_gray8[pdfrw] 
src/img2pdf_test.py::test_png_palette4[internal] 
[gw1] [ 13%] PASSED src/img2pdf_test.py::test_png_gray4[pdfrw] 
src/img2pdf_test.py::test_png_palette1[pikepdf] 
[gw7] [ 13%] PASSED src/img2pdf_test.py::test_png_gray16[pdfrw] 
src/img2pdf_test.py::test_png_palette8[pikepdf] 
[gw4] [ 13%] PASSED src/img2pdf_test.py::test_png_gray8[pikepdf] 
src/img2pdf_test.py::test_png_palette2[pikepdf] 
[gw2] [ 14%] PASSED src/img2pdf_test.py::test_png_palette2[internal] 
src/img2pdf_test.py::test_png_icc[pdfrw] 
[gw0] [ 14%] PASSED src/img2pdf_test.py::test_png_palette1[internal] 
src/img2pdf_test.py::test_png_icc[internal] 
[gw4] [ 14%] PASSED src/img2pdf_test.py::test_png_palette2[pikepdf] 
src/img2pdf_test.py::test_gif_transparent[internal] 
[gw1] [ 14%] PASSED src/img2pdf_test.py::test_png_palette1[pikepdf] 
src/img2pdf_test.py::test_png_icc[pikepdf] 
[gw3] [ 15%] PASSED src/img2pdf_test.py::test_png_palette4[internal] 
src/img2pdf_test.py::test_gif_transparent[pikepdf] 
[gw5] [ 15%] PASSED src/img2pdf_test.py::test_png_palette4[pikepdf] 
src/img2pdf_test.py::test_gif_transparent[pdfrw] 
[gw4] [ 15%] PASSED src/img2pdf_test.py::test_gif_transparent[internal] 
src/img2pdf_test.py::test_gif_palette4[pikepdf] 
[gw2] [ 16%] PASSED src/img2pdf_test.py::test_png_icc[pdfrw] 
src/img2pdf_test.py::test_gif_palette4[internal] 
[gw3] [ 16%] PASSED src/img2pdf_test.py::test_gif_transparent[pikepdf] 
src/img2pdf_test.py::test_gif_palette8[internal] 
[gw5] [ 16%] PASSED src/img2pdf_test.py::test_gif_transparent[pdfrw] 
src/img2pdf_test.py::test_gif_palette8[pikepdf] 
[gw6] [ 16%] PASSED src/img2pdf_test.py::test_png_palette8[internal] 
src/img2pdf_test.py::test_gif_palette1[internal] 
[gw0] [ 17%] PASSED src/img2pdf_test.py::test_png_icc[internal] 
src/img2pdf_test.py::test_gif_palette2[internal] 
[gw1] [ 17%] PASSED src/img2pdf_test.py::test_png_icc[pikepdf] 
src/img2pdf_test.py::test_gif_palette2[pikepdf] 
[gw7] [ 17%] PASSED src/img2pdf_test.py::test_png_palette8[pikepdf] 
src/img2pdf_test.py::test_gif_palette1[pikepdf] 
[gw4] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette4[pikepdf] 
src/img2pdf_test.py::test_tiff_cmyk8[internal] 
[gw6] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette1[internal] 
src/img2pdf_test.py::test_gif_animation[internal] 
[gw1] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette2[pikepdf] 
src/img2pdf_test.py::test_tiff_float[pikepdf] 
[gw0] [ 18%] PASSED src/img2pdf_test.py::test_gif_palette2[internal] 
src/img2pdf_test.py::test_tiff_float[internal] 
[gw2] [ 19%] PASSED src/img2pdf_test.py::test_gif_palette4[internal] 
src/img2pdf_test.py::test_tiff_float[pdfrw] 
[gw1] [ 19%] ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] 
src/img2pdf_test.py::test_tiff_rgb8[internal] 
[gw0] [ 19%] ERROR src/img2pdf_test.py::test_tiff_float[internal] 
src/img2pdf_test.py::test_tiff_cmyk16[pdfrw] 
[gw2] [ 20%] ERROR src/img2pdf_test.py::test_tiff_float[pdfrw] 
src/img2pdf_test.py::test_tiff_rgb8[pikepdf] 
[gw7] [ 20%] PASSED src/img2pdf_test.py::test_gif_palette1[pikepdf] 
src/img2pdf_test.py::test_gif_animation[pikepdf] 
[gw4] [ 20%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[internal] 
src/img2pdf_test.py::test_tiff_rgb8[pdfrw] 
[gw6] [ 20%] PASSED src/img2pdf_test.py::test_gif_animation[internal] 
src/img2pdf_test.py::test_tiff_cmyk16[internal] 
[gw5] [ 21%] PASSED src/img2pdf_test.py::test_gif_palette8[pikepdf] 
src/img2pdf_test.py::test_tiff_cmyk8[pdfrw] 
[gw0] [ 21%] PASSED src/img2pdf_test.py::test_tiff_cmyk16[pdfrw] 
src/img2pdf_test.py::test_tiff_gray2[internal] 
[gw2] [ 21%] PASSED src/img2pdf_test.py::test_tiff_rgb8[pikepdf] 
src/img2pdf_test.py::test_tiff_multipage[pdfrw] 
[gw3] [ 22%] PASSED src/img2pdf_test.py::test_gif_palette8[internal] 
src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] 
[gw1] [ 22%] PASSED src/img2pdf_test.py::test_tiff_rgb8[internal] 
src/img2pdf_test.py::test_tiff_rgb14[internal] 
[gw1] [ 22%] ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] 
src/img2pdf_test.py::test_tiff_rgb14[pikepdf] 
[gw7] [ 22%] PASSED src/img2pdf_test.py::test_gif_animation[pikepdf] 
src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] 
[gw1] [ 23%] ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] 
src/img2pdf_test.py::test_tiff_rgb14[pdfrw] 
[gw1] [ 23%] ERROR src/img2pdf_test.py::test_tiff_rgb14[pdfrw] 
src/img2pdf_test.py::test_tiff_rgb16[internal] 
[gw6] [ 23%] PASSED src/img2pdf_test.py::test_tiff_cmyk16[internal] 
src/img2pdf_test.py::test_tiff_rgb12[pdfrw] 
[gw4] [ 24%] PASSED src/img2pdf_test.py::test_tiff_rgb8[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] 
[gw5] [ 24%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[pdfrw] 
src/img2pdf_test.py::test_tiff_rgb12[pikepdf] 
[gw6] [ 24%] ERROR src/img2pdf_test.py::test_tiff_rgb12[pdfrw] 
src/img2pdf_test.py::test_layout[layout_test_cases9] 
[gw6] [ 25%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases9] 
src/img2pdf_test.py::test_layout[layout_test_cases10] 
[gw6] [ 25%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases10] 
src/img2pdf_test.py::test_layout[layout_test_cases11] 
[gw6] [ 25%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases11] 
src/img2pdf_test.py::test_layout[layout_test_cases12] 
[gw6] [ 25%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases12] 
src/img2pdf_test.py::test_layout[layout_test_cases13] 
[gw6] [ 26%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases13] 
src/img2pdf_test.py::test_layout[layout_test_cases14] 
[gw6] [ 26%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases14] 
src/img2pdf_test.py::test_layout[layout_test_cases15] 
[gw6] [ 26%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases15] 
src/img2pdf_test.py::test_layout[layout_test_cases16] 
[gw6] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases16] 
src/img2pdf_test.py::test_layout[layout_test_cases17] 
[gw6] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases17] 
src/img2pdf_test.py::test_layout[layout_test_cases18] 
[gw6] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases18] 
src/img2pdf_test.py::test_layout[layout_test_cases19] 
[gw6] [ 27%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases19] 
src/img2pdf_test.py::test_layout[layout_test_cases30] 
[gw6] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases30] 
src/img2pdf_test.py::test_layout[layout_test_cases31] 
[gw6] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases31] 
src/img2pdf_test.py::test_layout[layout_test_cases32] 
[gw6] [ 28%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases32] 
src/img2pdf_test.py::test_layout[layout_test_cases33] 
[gw6] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases33] 
src/img2pdf_test.py::test_layout[layout_test_cases34] 
[gw6] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases34] 
src/img2pdf_test.py::test_layout[layout_test_cases35] 
[gw6] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases35] 
src/img2pdf_test.py::test_layout[layout_test_cases36] 
[gw6] [ 29%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases36] 
src/img2pdf_test.py::test_layout[layout_test_cases37] 
[gw6] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases37] 
src/img2pdf_test.py::test_layout[layout_test_cases38] 
[gw6] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases38] 
src/img2pdf_test.py::test_layout[layout_test_cases39] 
[gw6] [ 30%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases39] 
src/img2pdf_test.py::test_layout[layout_test_cases40] 
[gw6] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases40] 
src/img2pdf_test.py::test_layout[layout_test_cases41] 
[gw6] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases41] 
src/img2pdf_test.py::test_layout[layout_test_cases42] 
[gw6] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases42] 
src/img2pdf_test.py::test_layout[layout_test_cases43] 
[gw6] [ 31%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases43] 
src/img2pdf_test.py::test_layout[layout_test_cases44] 
[gw6] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases44] 
src/img2pdf_test.py::test_layout[layout_test_cases45] 
[gw6] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases45] 
src/img2pdf_test.py::test_layout[layout_test_cases46] 
[gw6] [ 32%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases46] 
src/img2pdf_test.py::test_layout[layout_test_cases47] 
[gw6] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases47] 
src/img2pdf_test.py::test_layout[layout_test_cases48] 
[gw6] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases48] 
src/img2pdf_test.py::test_layout[layout_test_cases49] 
[gw6] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases49] 
src/img2pdf_test.py::test_layout[layout_test_cases50] 
[gw6] [ 33%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases50] 
src/img2pdf_test.py::test_layout[layout_test_cases51] 
[gw6] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases51] 
src/img2pdf_test.py::test_layout[layout_test_cases52] 
[gw6] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases52] 
src/img2pdf_test.py::test_layout[layout_test_cases53] 
[gw6] [ 34%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases53] 
src/img2pdf_test.py::test_layout[layout_test_cases54] 
[gw6] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases54] 
src/img2pdf_test.py::test_layout[layout_test_cases55] 
[gw6] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases55] 
src/img2pdf_test.py::test_layout[layout_test_cases56] 
[gw6] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases56] 
src/img2pdf_test.py::test_layout[layout_test_cases57] 
[gw6] [ 35%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases57] 
src/img2pdf_test.py::test_layout[layout_test_cases58] 
[gw6] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases58] 
src/img2pdf_test.py::test_layout[layout_test_cases59] 
[gw6] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases59] 
src/img2pdf_test.py::test_layout[layout_test_cases60] 
[gw6] [ 36%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases60] 
src/img2pdf_test.py::test_layout[layout_test_cases61] 
[gw6] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases61] 
src/img2pdf_test.py::test_layout[layout_test_cases62] 
[gw6] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases62] 
src/img2pdf_test.py::test_layout[layout_test_cases63] 
[gw6] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases63] 
src/img2pdf_test.py::test_layout[layout_test_cases64] 
[gw6] [ 37%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases64] 
src/img2pdf_test.py::test_layout[layout_test_cases65] 
[gw6] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases65] 
src/img2pdf_test.py::test_layout[layout_test_cases66] 
[gw6] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases66] 
src/img2pdf_test.py::test_layout[layout_test_cases67] 
[gw6] [ 38%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases67] 
src/img2pdf_test.py::test_layout[layout_test_cases68] 
[gw6] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases68] 
src/img2pdf_test.py::test_layout[layout_test_cases69] 
[gw6] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases69] 
src/img2pdf_test.py::test_layout[layout_test_cases70] 
[gw6] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases70] 
src/img2pdf_test.py::test_layout[layout_test_cases71] 
[gw6] [ 39%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases71] 
src/img2pdf_test.py::test_layout[layout_test_cases72] 
[gw6] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases72] 
src/img2pdf_test.py::test_layout[layout_test_cases73] 
[gw6] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases73] 
src/img2pdf_test.py::test_layout[layout_test_cases74] 
[gw6] [ 40%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases74] 
src/img2pdf_test.py::test_layout[layout_test_cases75] 
[gw6] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases75] 
src/img2pdf_test.py::test_layout[layout_test_cases76] 
[gw6] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases76] 
src/img2pdf_test.py::test_layout[layout_test_cases77] 
[gw6] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases77] 
src/img2pdf_test.py::test_layout[layout_test_cases78] 
[gw6] [ 41%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases78] 
src/img2pdf_test.py::test_layout[layout_test_cases79] 
[gw6] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases79] 
src/img2pdf_test.py::test_layout[layout_test_cases80] 
[gw6] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases80] 
src/img2pdf_test.py::test_layout[layout_test_cases81] 
[gw6] [ 42%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases81] 
src/img2pdf_test.py::test_layout[layout_test_cases82] 
[gw6] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases82] 
src/img2pdf_test.py::test_layout[layout_test_cases83] 
[gw6] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases83] 
src/img2pdf_test.py::test_layout[layout_test_cases84] 
[gw6] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases84] 
src/img2pdf_test.py::test_layout[layout_test_cases85] 
[gw6] [ 43%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases85] 
src/img2pdf_test.py::test_layout[layout_test_cases86] 
[gw6] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases86] 
src/img2pdf_test.py::test_layout[layout_test_cases87] 
[gw6] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases87] 
src/img2pdf_test.py::test_layout[layout_test_cases88] 
[gw6] [ 44%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases88] 
src/img2pdf_test.py::test_layout[layout_test_cases89] 
[gw6] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases89] 
src/img2pdf_test.py::test_layout[layout_test_cases90] 
[gw6] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases90] 
src/img2pdf_test.py::test_layout[layout_test_cases91] 
[gw6] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases91] 
src/img2pdf_test.py::test_layout[layout_test_cases92] 
[gw6] [ 45%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases92] 
src/img2pdf_test.py::test_layout[layout_test_cases93] 
[gw6] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases93] 
src/img2pdf_test.py::test_layout[layout_test_cases94] 
[gw6] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases94] 
src/img2pdf_test.py::test_layout[layout_test_cases95] 
[gw6] [ 46%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases95] 
src/img2pdf_test.py::test_layout[layout_test_cases96] 
[gw0] [ 47%] PASSED src/img2pdf_test.py::test_tiff_gray2[internal] 
[gw6] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases96] 
src/img2pdf_test.py::test_tiff_gray2[pikepdf] 
src/img2pdf_test.py::test_layout[layout_test_cases97] 
[gw6] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases97] 
src/img2pdf_test.py::test_layout[layout_test_cases98] 
[gw6] [ 47%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases98] 
src/img2pdf_test.py::test_layout[layout_test_cases99] 
[gw6] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases99] 
src/img2pdf_test.py::test_layout[layout_test_cases100] 
[gw6] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases100] 
src/img2pdf_test.py::test_layout[layout_test_cases101] 
[gw6] [ 48%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases101] 
src/img2pdf_test.py::test_layout[layout_test_cases102] 
[gw6] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases102] 
src/img2pdf_test.py::test_layout[layout_test_cases103] 
[gw6] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases103] 
src/img2pdf_test.py::test_layout[layout_test_cases104] 
[gw6] [ 49%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases104] 
src/img2pdf_test.py::test_layout[layout_test_cases105] 
[gw6] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases105] 
src/img2pdf_test.py::test_layout[layout_test_cases106] 
[gw6] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases106] 
src/img2pdf_test.py::test_layout[layout_test_cases107] 
[gw6] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases107] 
src/img2pdf_test.py::test_layout[layout_test_cases108] 
[gw6] [ 50%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases108] 
src/img2pdf_test.py::test_layout[layout_test_cases109] 
[gw6] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases109] 
src/img2pdf_test.py::test_layout[layout_test_cases110] 
[gw6] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases110] 
src/img2pdf_test.py::test_layout[layout_test_cases111] 
[gw6] [ 51%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases111] 
src/img2pdf_test.py::test_layout[layout_test_cases112] 
[gw6] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases112] 
src/img2pdf_test.py::test_layout[layout_test_cases113] 
[gw6] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases113] 
src/img2pdf_test.py::test_layout[layout_test_cases114] 
[gw6] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases114] 
src/img2pdf_test.py::test_layout[layout_test_cases115] 
[gw6] [ 52%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases115] 
src/img2pdf_test.py::test_layout[layout_test_cases116] 
[gw6] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases116] 
src/img2pdf_test.py::test_layout[layout_test_cases117] 
[gw6] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases117] 
src/img2pdf_test.py::test_layout[layout_test_cases118] 
[gw6] [ 53%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases118] 
src/img2pdf_test.py::test_layout[layout_test_cases119] 
[gw6] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases119] 
src/img2pdf_test.py::test_layout[layout_test_cases120] 
[gw6] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases120] 
src/img2pdf_test.py::test_layout[layout_test_cases121] 
[gw6] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases121] 
src/img2pdf_test.py::test_layout[layout_test_cases122] 
[gw6] [ 54%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases122] 
src/img2pdf_test.py::test_layout[layout_test_cases123] 
[gw6] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases123] 
src/img2pdf_test.py::test_layout[layout_test_cases124] 
[gw6] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases124] 
src/img2pdf_test.py::test_layout[layout_test_cases125] 
[gw6] [ 55%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases125] 
src/img2pdf_test.py::test_layout[layout_test_cases126] 
[gw6] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases126] 
src/img2pdf_test.py::test_layout[layout_test_cases127] 
[gw6] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases127] 
src/img2pdf_test.py::test_layout[layout_test_cases128] 
[gw6] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases128] 
src/img2pdf_test.py::test_layout[layout_test_cases129] 
[gw6] [ 56%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases129] 
src/img2pdf_test.py::test_layout[layout_test_cases130] 
[gw6] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases130] 
src/img2pdf_test.py::test_layout[layout_test_cases131] 
[gw6] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases131] 
src/img2pdf_test.py::test_layout[layout_test_cases132] 
[gw6] [ 57%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases132] 
src/img2pdf_test.py::test_layout[layout_test_cases133] 
[gw6] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases133] 
src/img2pdf_test.py::test_layout[layout_test_cases134] 
[gw5] [ 58%] ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] 
src/img2pdf_test.py::test_layout[layout_test_cases20] 
[gw6] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases134] 
src/img2pdf_test.py::test_layout[layout_test_cases135] 
[gw5] [ 58%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases20] 
src/img2pdf_test.py::test_layout[layout_test_cases21] 
[gw6] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases135] 
[gw5] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases21] 
src/img2pdf_test.py::test_layout[layout_test_cases136] 
src/img2pdf_test.py::test_layout[layout_test_cases22] 
[gw6] [ 59%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases136] 
[gw5] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases22] 
src/img2pdf_test.py::test_layout[layout_test_cases137] 
src/img2pdf_test.py::test_layout[layout_test_cases23] 
[gw6] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases137] 
[gw5] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases23] 
src/img2pdf_test.py::test_layout[layout_test_cases138] 
src/img2pdf_test.py::test_layout[layout_test_cases24] 
[gw5] [ 60%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases24] 
[gw6] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases138] 
src/img2pdf_test.py::test_layout[layout_test_cases25] 
src/img2pdf_test.py::test_layout[layout_test_cases139] 
[gw5] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases25] 
src/img2pdf_test.py::test_layout[layout_test_cases26] 
[gw6] [ 61%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases139] 
src/img2pdf_test.py::test_layout[layout_test_cases140] 
[gw5] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases26] 
[gw6] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases140] 
src/img2pdf_test.py::test_layout[layout_test_cases27] 
src/img2pdf_test.py::test_layout[layout_test_cases141] 
[gw5] [ 62%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases27] 
[gw2] [ 62%] PASSED src/img2pdf_test.py::test_tiff_multipage[pdfrw] 
[gw6] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases141] 
src/img2pdf_test.py::test_layout[layout_test_cases28] 
src/img2pdf_test.py::test_tiff_palette1[internal] 
src/img2pdf_test.py::test_layout[layout_test_cases142] 
[gw5] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases28] 
[gw6] [ 63%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases142] 
src/img2pdf_test.py::test_layout[layout_test_cases29] 
src/img2pdf_test.py::test_layout[layout_test_cases143] 
[gw6] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases143] 
[gw5] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases29] 
src/img2pdf_test.py::test_layout[layout_test_cases145] 
src/img2pdf_test.py::test_layout[layout_test_cases144] 
[gw5] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases145] 
[gw6] [ 64%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases144] 
src/img2pdf_test.py::test_layout[layout_test_cases146] 
src/img2pdf_test.py::test_layout[layout_test_cases147] 
[gw5] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases146] 
src/img2pdf_test.py::test_layout[layout_test_cases149] 
[gw6] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases147] 
src/img2pdf_test.py::test_layout[layout_test_cases148] 
[gw5] [ 65%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases149] 
src/img2pdf_test.py::test_layout[layout_test_cases150] 
[gw6] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases148] 
src/img2pdf_test.py::test_layout[layout_test_cases151] 
[gw5] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases150] 
[gw6] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases151] 
src/img2pdf_test.py::test_layout[layout_test_cases153] 
src/img2pdf_test.py::test_layout[layout_test_cases152] 
[gw5] [ 66%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases153] 
[gw6] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases152] 
src/img2pdf_test.py::test_layout[layout_test_cases155] 
src/img2pdf_test.py::test_layout[layout_test_cases154] 
[gw6] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases155] 
src/img2pdf_test.py::test_layout[layout_test_cases156] 
[gw5] [ 67%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases154] 
[gw6] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases156] 
src/img2pdf_test.py::test_layout[layout_test_cases157] 
src/img2pdf_test.py::test_layout[layout_test_cases159] 
[gw5] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases157] 
[gw6] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases159] 
src/img2pdf_test.py::test_layout[layout_test_cases158] 
src/img2pdf_test.py::test_layout[layout_test_cases160] 
[gw6] [ 68%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases160] 
[gw5] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases158] 
src/img2pdf_test.py::test_layout[layout_test_cases162] 
src/img2pdf_test.py::test_layout[layout_test_cases161] 
[gw6] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases162] 
src/img2pdf_test.py::test_layout[layout_test_cases163] 
[gw5] [ 69%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases161] 
[gw6] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases163] 
src/img2pdf_test.py::test_layout[layout_test_cases164] 
src/img2pdf_test.py::test_layout[layout_test_cases165] 
[gw6] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases165] 
[gw5] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases164] 
src/img2pdf_test.py::test_layout[layout_test_cases167] 
src/img2pdf_test.py::test_layout[layout_test_cases166] 
[gw6] [ 70%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases167] 
src/img2pdf_test.py::test_layout[layout_test_cases168] 
[gw5] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases166] 
[gw6] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases168] 
src/img2pdf_test.py::test_layout[layout_test_cases169] 
src/img2pdf_test.py::test_layout[layout_test_cases170] 
[gw5] [ 71%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases169] 
[gw6] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases170] 
[gw7] [ 72%] PASSED src/img2pdf_test.py::test_tiff_cmyk16[pikepdf] 
src/img2pdf_test.py::test_layout[layout_test_cases171] 
src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] 
src/img2pdf_test.py::test_layout[layout_test_cases172] 
[gw5] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases171] 
[gw6] [ 72%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases172] 
src/img2pdf_test.py::test_layout[layout_test_cases173] 
src/img2pdf_test.py::test_layout[layout_test_cases174] 
[gw5] [ 73%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases173] 
[gw6] [ 73%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases174] 
src/img2pdf_test.py::test_layout[layout_test_cases175] 
src/img2pdf_test.py::test_layout[layout_test_cases176] 
[gw5] [ 73%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases175] 
[gw6] [ 74%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases176] 
src/img2pdf_test.py::test_layout[layout_test_cases177] 
src/img2pdf_test.py::test_layout[layout_test_cases178] 
[gw5] [ 74%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases177] 
[gw6] [ 74%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases178] 
src/img2pdf_test.py::test_layout[layout_test_cases179] 
src/img2pdf_test.py::test_layout[layout_test_cases180] 
[gw5] [ 75%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases179] 
[gw3] [ 75%] PASSED src/img2pdf_test.py::test_tiff_cmyk8[pikepdf] 
[gw6] [ 75%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases180] 
src/img2pdf_test.py::test_tiff_rgb12[internal] 
src/img2pdf_test.py::test_general[normal.png-pikepdf] 
src/img2pdf_test.py::test_general[normal.png-internal] 
[gw5] [ 75%] PASSED src/img2pdf_test.py::test_general[normal.png-internal] 
src/img2pdf_test.py::test_general[normal.jpg-pikepdf] 
[gw6] [ 76%] PASSED src/img2pdf_test.py::test_general[normal.png-pikepdf] 
src/img2pdf_test.py::test_general[normal.jpg-internal] 
[gw5] [ 76%] PASSED src/img2pdf_test.py::test_general[normal.jpg-pikepdf] 
src/img2pdf_test.py::test_general[normal.jpg-pdfrw] 
[gw6] [ 76%] PASSED src/img2pdf_test.py::test_general[normal.jpg-internal] 
src/img2pdf_test.py::test_general[mono.tif-internal] 
[gw5] [ 77%] PASSED src/img2pdf_test.py::test_general[normal.jpg-pdfrw] 
src/img2pdf_test.py::test_general[mono.tif-pikepdf] 
[gw6] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.tif-internal] 
src/img2pdf_test.py::test_general[mono.tif-pdfrw] 
[gw5] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.tif-pikepdf] 
src/img2pdf_test.py::test_general[mono.png-internal] 
[gw5] [ 77%] PASSED src/img2pdf_test.py::test_general[mono.png-internal] 
src/img2pdf_test.py::test_general[mono.png-pdfrw] 
[gw6] [ 78%] PASSED src/img2pdf_test.py::test_general[mono.tif-pdfrw] 
src/img2pdf_test.py::test_general[mono.png-pikepdf] 
[gw5] [ 78%] PASSED src/img2pdf_test.py::test_general[mono.png-pdfrw] 
src/img2pdf_test.py::test_general[gray.png-internal] 
[gw6] [ 78%] PASSED src/img2pdf_test.py::test_general[mono.png-pikepdf] 
[gw5] [ 79%] PASSED src/img2pdf_test.py::test_general[gray.png-internal] 
src/img2pdf_test.py::test_general[gray.png-pikepdf] 
src/img2pdf_test.py::test_general[gray.png-pdfrw] 
[gw5] [ 79%] PASSED src/img2pdf_test.py::test_general[gray.png-pdfrw] 
src/img2pdf_test.py::test_general[animation.gif-pikepdf] 
[gw6] [ 79%] PASSED src/img2pdf_test.py::test_general[gray.png-pikepdf] 
src/img2pdf_test.py::test_general[animation.gif-internal] 
[gw5] [ 79%] PASSED src/img2pdf_test.py::test_general[animation.gif-pikepdf] 
src/img2pdf_test.py::test_general[animation.gif-pdfrw] 
[gw5] [ 80%] PASSED src/img2pdf_test.py::test_general[animation.gif-pdfrw] 
src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] 
[gw6] [ 80%] PASSED src/img2pdf_test.py::test_general[animation.gif-internal] 
src/img2pdf_test.py::test_general[CMYK.tif-internal] 
[gw5] [ 80%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-pikepdf] 
src/img2pdf_test.py::test_general[CMYK.tif-pdfrw] 
[gw6] [ 81%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-internal] 
src/img2pdf_test.py::test_general[CMYK.jpg-internal] 
[gw5] [ 81%] PASSED src/img2pdf_test.py::test_general[CMYK.tif-pdfrw] 
src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] 
[gw6] [ 81%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-internal] 
src/img2pdf_test.py::test_general[CMYK.jpg-pdfrw] 
[gw5] [ 81%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-pikepdf] 
[gw6] [ 82%] PASSED src/img2pdf_test.py::test_general[CMYK.jpg-pdfrw] 
[gw3] [ 82%] ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] 
src/img2pdf_test.py::test_general[normal.png-pdfrw] 
[gw1] [ 82%] PASSED src/img2pdf_test.py::test_tiff_rgb16[internal] 
src/img2pdf_test.py::test_tiff_rgb16[pikepdf] 
[gw3] [ 83%] PASSED src/img2pdf_test.py::test_general[normal.png-pdfrw] 
[gw4] [ 83%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pdfrw] 
[gw0] [ 83%] PASSED src/img2pdf_test.py::test_tiff_gray2[pikepdf] 
src/img2pdf_test.py::test_tiff_gray2[pdfrw] 
[gw2] [ 83%] PASSED src/img2pdf_test.py::test_tiff_palette1[internal] 
src/img2pdf_test.py::test_tiff_palette1[pikepdf] 
[gw1] [ 84%] PASSED src/img2pdf_test.py::test_tiff_rgb16[pikepdf] 
src/img2pdf_test.py::test_tiff_rgb16[pdfrw] 
[gw7] [ 84%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_nometa2[pdfrw] 
[gw4] [ 84%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] 
[gw0] [ 85%] PASSED src/img2pdf_test.py::test_tiff_gray2[pdfrw] 
src/img2pdf_test.py::test_tiff_gray4[internal] 
[gw1] [ 85%] PASSED src/img2pdf_test.py::test_tiff_rgb16[pdfrw] 
src/img2pdf_test.py::test_tiff_rgba8[internal] 
[gw2] [ 85%] PASSED src/img2pdf_test.py::test_tiff_palette1[pikepdf] 
src/img2pdf_test.py::test_tiff_palette2[internal] 
[gw7] [ 85%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[pdfrw] 
src/img2pdf_test.py::test_layout[layout_test_cases0] 
[gw7] [ 86%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases0] 
src/img2pdf_test.py::test_layout[layout_test_cases1] 
[gw7] [ 86%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases1] 
src/img2pdf_test.py::test_layout[layout_test_cases2] 
[gw7] [ 86%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases2] 
src/img2pdf_test.py::test_layout[layout_test_cases3] 
[gw7] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases3] 
src/img2pdf_test.py::test_layout[layout_test_cases4] 
[gw7] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases4] 
src/img2pdf_test.py::test_layout[layout_test_cases5] 
[gw7] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases5] 
src/img2pdf_test.py::test_layout[layout_test_cases6] 
[gw7] [ 87%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases6] 
src/img2pdf_test.py::test_layout[layout_test_cases7] 
[gw7] [ 88%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases7] 
src/img2pdf_test.py::test_layout[layout_test_cases8] 
[gw7] [ 88%] PASSED src/img2pdf_test.py::test_layout[layout_test_cases8] 
[gw4] [ 88%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[internal] 
src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] 
[gw0] [ 89%] PASSED src/img2pdf_test.py::test_tiff_gray4[internal] 
src/img2pdf_test.py::test_tiff_gray4[pikepdf] 
[gw1] [ 89%] PASSED src/img2pdf_test.py::test_tiff_rgba8[internal] 
src/img2pdf_test.py::test_tiff_rgba8[pikepdf] 
[gw2] [ 89%] PASSED src/img2pdf_test.py::test_tiff_palette2[internal] 
src/img2pdf_test.py::test_tiff_palette2[pikepdf] 
[gw4] [ 89%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pdfrw] 
[gw1] [ 90%] PASSED src/img2pdf_test.py::test_tiff_rgba8[pikepdf] 
src/img2pdf_test.py::test_tiff_rgba8[pdfrw] 
[gw0] [ 90%] PASSED src/img2pdf_test.py::test_tiff_gray4[pikepdf] 
src/img2pdf_test.py::test_tiff_gray4[pdfrw] 
[gw2] [ 90%] PASSED src/img2pdf_test.py::test_tiff_palette2[pikepdf] 
src/img2pdf_test.py::test_tiff_palette4[internal] 
[gw4] [ 91%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_l2m_white[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] 
[gw1] [ 91%] PASSED src/img2pdf_test.py::test_tiff_rgba8[pdfrw] 
src/img2pdf_test.py::test_tiff_rgba16[internal] 
[gw0] [ 91%] PASSED src/img2pdf_test.py::test_tiff_gray4[pdfrw] 
src/img2pdf_test.py::test_tiff_gray8[internal] 
[gw2] [ 91%] PASSED src/img2pdf_test.py::test_tiff_palette4[internal] 
src/img2pdf_test.py::test_tiff_palette4[pikepdf] 
[gw1] [ 92%] PASSED src/img2pdf_test.py::test_tiff_rgba16[internal] 
src/img2pdf_test.py::test_tiff_rgba16[pikepdf] 
[gw4] [ 92%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[internal] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] 
[gw0] [ 92%] PASSED src/img2pdf_test.py::test_tiff_gray8[internal] 
src/img2pdf_test.py::test_tiff_gray8[pikepdf] 
[gw2] [ 93%] PASSED src/img2pdf_test.py::test_tiff_palette4[pikepdf] 
src/img2pdf_test.py::test_tiff_palette8[internal] 
[gw1] [ 93%] PASSED src/img2pdf_test.py::test_tiff_rgba16[pikepdf] 
src/img2pdf_test.py::test_tiff_rgba16[pdfrw] 
[gw4] [ 93%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pdfrw] 
[gw0] [ 93%] PASSED src/img2pdf_test.py::test_tiff_gray8[pikepdf] 
src/img2pdf_test.py::test_tiff_gray8[pdfrw] 
[gw1] [ 94%] PASSED src/img2pdf_test.py::test_tiff_rgba16[pdfrw] 
src/img2pdf_test.py::test_tiff_gray1[internal] 
[gw4] [ 94%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_black[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] 
[gw0] [ 94%] PASSED src/img2pdf_test.py::test_tiff_gray8[pdfrw] 
src/img2pdf_test.py::test_tiff_gray16[internal] 
[gw1] [ 95%] PASSED src/img2pdf_test.py::test_tiff_gray1[internal] 
src/img2pdf_test.py::test_tiff_gray1[pikepdf] 
[gw2] [ 95%] PASSED src/img2pdf_test.py::test_tiff_palette8[internal] 
src/img2pdf_test.py::test_tiff_palette8[pikepdf] 
[gw0] [ 95%] PASSED src/img2pdf_test.py::test_tiff_gray16[internal] 
src/img2pdf_test.py::test_tiff_gray16[pikepdf] 
[gw4] [ 95%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[internal] 
src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] 
[gw1] [ 96%] PASSED src/img2pdf_test.py::test_tiff_gray1[pikepdf] 
src/img2pdf_test.py::test_tiff_gray1[pdfrw] 
[gw2] [ 96%] PASSED src/img2pdf_test.py::test_tiff_palette8[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] 
[gw0] [ 96%] PASSED src/img2pdf_test.py::test_tiff_gray16[pikepdf] 
src/img2pdf_test.py::test_tiff_gray16[pdfrw] 
[gw4] [ 97%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_nometa1[pdfrw] 
[gw1] [ 97%] PASSED src/img2pdf_test.py::test_tiff_gray1[pdfrw] 
[gw0] [ 97%] PASSED src/img2pdf_test.py::test_tiff_gray16[pdfrw] 
src/img2pdf_test.py::test_tiff_multipage[internal] 
[gw2] [ 97%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[internal] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] 
[gw4] [ 98%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa1[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] 
[gw2] [ 98%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pikepdf] 
src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pdfrw] 
[gw0] [ 98%] PASSED src/img2pdf_test.py::test_tiff_multipage[internal] 
src/img2pdf_test.py::test_tiff_multipage[pikepdf] 
[gw4] [ 99%] PASSED src/img2pdf_test.py::test_tiff_ccitt_nometa2[internal] 
[gw2] [ 99%] PASSED src/img2pdf_test.py::test_tiff_ccitt_lsb_m2l_white[pdfrw] 
src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] 
[gw0] [ 99%] PASSED src/img2pdf_test.py::test_tiff_multipage[pikepdf] 
[gw2] [100%] PASSED src/img2pdf_test.py::test_tiff_ccitt_msb_m2l_white[internal] 

===================================================================================================== ERRORS ======================================================================================================
___________________________________________________________________________________ ERROR at setup of test_tiff_float[pikepdf] ____________________________________________________________________________________
[gw1] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal_png0/normal.png')

    @pytest.fixture(scope="session")
    def tiff_float_img(tmp_path_factory, tmp_normal_png):
        in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff"
        subprocess.check_call(
            [
                "convert",
                str(tmp_normal_png),
                "-depth",
                "32",
                "-define",
                "quantum:format=floating-point",
                str(in_img),
            ]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
>       assert identify[0]["image"].get("depth") == 8, str(identify)
E       AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 32, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4294967300.0, 'mean': 1248849900.0, 'median': 0, 'standardDeviation': 1785458900.0, 'kurtosis': -1.0012551, 'skewness': 0.91534253, 'entropy': 0.46085853}}, 'channelStatistics': {'red': {'min': 0, 'max': 4294967300.0, 'mean': 1248979300.0, 'median': 0, 'standardDeviation': 1784991400.0, 'kurtosis': -1.0011022, 'skewness': 0.91535869, 'entropy': 0.4620463}, 'green': {'min': 0, 'max': 4294967300.0, 'mean': 1251028500.0, 'median': 0, 'standardDeviation': 1786376800.0, 'kurtosis': -1.0068552, 'skewness': 0.91247895, 'entropy': 0.46098122}, 'blue': {'min': 0, 'max': 4294967300.0, 'mean': 1246541700.0, 'median': 0, 'standardDeviation': 1785008300.0, 'kurtosis': -0.99800862, 'skewness': 0.91743134, 'entropy': 0.45954807}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:52+00:00', 'date:modify': '2021-08-22T23:19:52+00:00', 'quantum:format': 'floating-point', 'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '6874913B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E       assert 32 == 8
E         +32
E         -8

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 32,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45954807,
                                           'kurtosis': -0.99800862,
                                           'max': 4294967300.0,
                                           'mean': 1246541700.0,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91743134,
                                           'standardDeviation': 1785008300.0},
                                  'green': {'entropy': 0.46098122,
                                            'kurtosis': -1.0068552,
                                            'max': 4294967300.0,
                                            'mean': 1251028500.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91247895,
                                            'standardDeviation': 1786376800.0},
                                  'red': {'entropy': 0.4620463,
                                          'kurtosis': -1.0011022,
                                          'max': 4294967300.0,
                                          'mean': 1248979300.0,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91535869,
                                          'standardDeviation': 1784991400.0}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '43530B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.46085853,
                                            'kurtosis': -1.0012551,
                                            'max': 4294967300.0,
                                            'mean': 1248849900.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91534253,
                                            'standardDeviation': 1785458900.0}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_float_img0/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '6874913B',
            'properties': {'date:create': '2021-08-22T23:19:52+00:00',
                           'date:modify': '2021-08-22T23:19:52+00:00',
                           'quantum:format': 'floating-point',
                           'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '11'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_float_img0/in.tiff')
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal_png0/normal.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'), _trace=<pluggy._tracing.TagTracerSub object at 0x7ff449810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))

src/img2pdf_test.py:2255: AssertionError
___________________________________________________________________________________ ERROR at setup of test_tiff_float[internal] ___________________________________________________________________________________
[gw0] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...a369250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0'))
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal_png0/normal.png')

    @pytest.fixture(scope="session")
    def tiff_float_img(tmp_path_factory, tmp_normal_png):
        in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff"
        subprocess.check_call(
            [
                "convert",
                str(tmp_normal_png),
                "-depth",
                "32",
                "-define",
                "quantum:format=floating-point",
                str(in_img),
            ]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
>       assert identify[0]["image"].get("depth") == 8, str(identify)
E       AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 32, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4294967300.0, 'mean': 1248849900.0, 'median': 0, 'standardDeviation': 1785458900.0, 'kurtosis': -1.0012551, 'skewness': 0.91534253, 'entropy': 0.46085853}}, 'channelStatistics': {'red': {'min': 0, 'max': 4294967300.0, 'mean': 1248979300.0, 'median': 0, 'standardDeviation': 1784991400.0, 'kurtosis': -1.0011022, 'skewness': 0.91535869, 'entropy': 0.4620463}, 'green': {'min': 0, 'max': 4294967300.0, 'mean': 1251028500.0, 'median': 0, 'standardDeviation': 1786376800.0, 'kurtosis': -1.0068552, 'skewness': 0.91247895, 'entropy': 0.46098122}, 'blue': {'min': 0, 'max': 4294967300.0, 'mean': 1246541700.0, 'median': 0, 'standardDeviation': 1785008300.0, 'kurtosis': -0.99800862, 'skewness': 0.91743134, 'entropy': 0.45954807}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:52+00:00', 'date:modify': '2021-08-22T23:19:52+00:00', 'quantum:format': 'floating-point', 'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '6672165B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E       assert 32 == 8
E         +32
E         -8

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 32,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45954807,
                                           'kurtosis': -0.99800862,
                                           'max': 4294967300.0,
                                           'mean': 1246541700.0,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91743134,
                                           'standardDeviation': 1785008300.0},
                                  'green': {'entropy': 0.46098122,
                                            'kurtosis': -1.0068552,
                                            'max': 4294967300.0,
                                            'mean': 1251028500.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91247895,
                                            'standardDeviation': 1786376800.0},
                                  'red': {'entropy': 0.4620463,
                                          'kurtosis': -1.0011022,
                                          'max': 4294967300.0,
                                          'mean': 1248979300.0,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91535869,
                                          'standardDeviation': 1784991400.0}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '43530B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.46085853,
                                            'kurtosis': -1.0012551,
                                            'max': 4294967300.0,
                                            'mean': 1248849900.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91534253,
                                            'standardDeviation': 1785458900.0}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_float_img0/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '6672165B',
            'properties': {'date:create': '2021-08-22T23:19:52+00:00',
                           'date:modify': '2021-08-22T23:19:52+00:00',
                           'quantum:format': 'floating-point',
                           'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '11'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_float_img0/in.tiff')
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/normal_png0/normal.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fd97a369250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0'))

src/img2pdf_test.py:2255: AssertionError
____________________________________________________________________________________ ERROR at setup of test_tiff_float[pdfrw] _____________________________________________________________________________________
[gw2] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...eace250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2'))
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/normal_png0/normal.png')

    @pytest.fixture(scope="session")
    def tiff_float_img(tmp_path_factory, tmp_normal_png):
        in_img = tmp_path_factory.mktemp("tiff_float_img") / "in.tiff"
        subprocess.check_call(
            [
                "convert",
                str(tmp_normal_png),
                "-depth",
                "32",
                "-define",
                "quantum:format=floating-point",
                str(in_img),
            ]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
>       assert identify[0]["image"].get("depth") == 8, str(identify)
E       AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/tiff_float_img0/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 32, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4294967300.0, 'mean': 1248849900.0, 'median': 0, 'standardDeviation': 1785458900.0, 'kurtosis': -1.0012551, 'skewness': 0.91534253, 'entropy': 0.46085853}}, 'channelStatistics': {'red': {'min': 0, 'max': 4294967300.0, 'mean': 1248979300.0, 'median': 0, 'standardDeviation': 1784991400.0, 'kurtosis': -1.0011022, 'skewness': 0.91535869, 'entropy': 0.4620463}, 'green': {'min': 0, 'max': 4294967300.0, 'mean': 1251028500.0, 'median': 0, 'standardDeviation': 1786376800.0, 'kurtosis': -1.0068552, 'skewness': 0.91247895, 'entropy': 0.46098122}, 'blue': {'min': 0, 'max': 4294967300.0, 'mean': 1246541700.0, 'median': 0, 'standardDeviation': 1785008300.0, 'kurtosis': -0.99800862, 'skewness': 0.91743134, 'entropy': 0.45954807}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:52+00:00', 'date:modify': '2021-08-22T23:19:52+00:00', 'quantum:format': 'floating-point', 'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '11'}, 'tainted': False, 'filesize': '43530B', 'numberPixels': '3600', 'pixelsPerSecond': '6830497B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E       assert 32 == 8
E         +32
E         -8

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 32,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45954807,
                                           'kurtosis': -0.99800862,
                                           'max': 4294967300.0,
                                           'mean': 1246541700.0,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91743134,
                                           'standardDeviation': 1785008300.0},
                                  'green': {'entropy': 0.46098122,
                                            'kurtosis': -1.0068552,
                                            'max': 4294967300.0,
                                            'mean': 1251028500.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91247895,
                                            'standardDeviation': 1786376800.0},
                                  'red': {'entropy': 0.4620463,
                                          'kurtosis': -1.0011022,
                                          'max': 4294967300.0,
                                          'mean': 1248979300.0,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91535869,
                                          'standardDeviation': 1784991400.0}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '43530B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.46085853,
                                            'kurtosis': -1.0012551,
                                            'max': 4294967300.0,
                                            'mean': 1248849900.0,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91534253,
                                            'standardDeviation': 1785458900.0}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/tiff_float_img0/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '6830497B',
            'properties': {'date:create': '2021-08-22T23:19:52+00:00',
                           'date:modify': '2021-08-22T23:19:52+00:00',
                           'quantum:format': 'floating-point',
                           'signature': '3682ab30ca3e3e65596cf553ac7ed02a600cca516ddb40cd75904aed99be32ca',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '11'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/tiff_float_img0/in.tiff')
tmp_normal_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/normal_png0/normal.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2'), _trace=<pluggy._tracing.TagTracerSub object at 0x7ffb6eace250>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2'))

src/img2pdf_test.py:2255: AssertionError
___________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[internal] ___________________________________________________________________________________
[gw1] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "14", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 14, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 14, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 16383, 'mean': 4781.8956, 'median': 0, 'standardDeviation': 6830.9827, 'kurtosis': -1.0011647, 'skewness': 0.91492813, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 16383, 'mean': 4782.3959, 'median': 0, 'standardDeviation': 6829.1886, 'kurtosis': -1.0010113, 'skewness': 0.91494407, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 16383, 'mean': 4790.2309, 'median': 0, 'standardDeviation': 6834.5041, 'kurtosis': -1.0067604, 'skewness': 0.91206772, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 16383, 'mean': 4773.06, 'median': 0, 'standardDeviation': 6829.2553, 'kurtosis': -0.99792336, 'skewness': 0.91701432, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:53+00:00', 'date:modify': '2021-08-22T23:19:53+00:00', 'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7490169B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 14,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99792336,
                                           'max': 16383,
                                           'mean': 4773.06,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91701432,
                                           'standardDeviation': 6829.2553},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0067604,
                                            'max': 16383,
                                            'mean': 4790.2309,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91206772,
                                            'standardDeviation': 6834.5041},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0010113,
                                          'max': 16383,
                                          'mean': 4782.3959,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91494407,
                                          'standardDeviation': 6829.1886}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '19164B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0011647,
                                            'max': 16383,
                                            'mean': 4781.8956,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91492813,
                                            'standardDeviation': 6830.9827}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7490169B',
            'properties': {'date:create': '2021-08-22T23:19:53+00:00',
                           'date:modify': '2021-08-22T23:19:53+00:00',
                           'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '26'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'), _trace=<pluggy._tracing.TagTracerSub object at 0x7ff449810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))

src/img2pdf_test.py:2515: AssertionError
___________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[pikepdf] ____________________________________________________________________________________
[gw1] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "14", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 14, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 14, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 16383, 'mean': 4781.8956, 'median': 0, 'standardDeviation': 6830.9827, 'kurtosis': -1.0011647, 'skewness': 0.91492813, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 16383, 'mean': 4782.3959, 'median': 0, 'standardDeviation': 6829.1886, 'kurtosis': -1.0010113, 'skewness': 0.91494407, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 16383, 'mean': 4790.2309, 'median': 0, 'standardDeviation': 6834.5041, 'kurtosis': -1.0067604, 'skewness': 0.91206772, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 16383, 'mean': 4773.06, 'median': 0, 'standardDeviation': 6829.2553, 'kurtosis': -0.99792336, 'skewness': 0.91701432, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:53+00:00', 'date:modify': '2021-08-22T23:19:53+00:00', 'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7490169B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 14,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99792336,
                                           'max': 16383,
                                           'mean': 4773.06,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91701432,
                                           'standardDeviation': 6829.2553},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0067604,
                                            'max': 16383,
                                            'mean': 4790.2309,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91206772,
                                            'standardDeviation': 6834.5041},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0010113,
                                          'max': 16383,
                                          'mean': 4782.3959,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91494407,
                                          'standardDeviation': 6829.1886}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '19164B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0011647,
                                            'max': 16383,
                                            'mean': 4781.8956,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91492813,
                                            'standardDeviation': 6830.9827}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7490169B',
            'properties': {'date:create': '2021-08-22T23:19:53+00:00',
                           'date:modify': '2021-08-22T23:19:53+00:00',
                           'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '26'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'), _trace=<pluggy._tracing.TagTracerSub object at 0x7ff449810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))

src/img2pdf_test.py:2515: AssertionError
____________________________________________________________________________________ ERROR at setup of test_tiff_rgb14[pdfrw] _____________________________________________________________________________________
[gw1] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb14_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "14", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 14, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 14, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 16383, 'mean': 4781.8956, 'median': 0, 'standardDeviation': 6830.9827, 'kurtosis': -1.0011647, 'skewness': 0.91492813, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 16383, 'mean': 4782.3959, 'median': 0, 'standardDeviation': 6829.1886, 'kurtosis': -1.0010113, 'skewness': 0.91494407, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 16383, 'mean': 4790.2309, 'median': 0, 'standardDeviation': 6834.5041, 'kurtosis': -1.0067604, 'skewness': 0.91206772, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 16383, 'mean': 4773.06, 'median': 0, 'standardDeviation': 6829.2553, 'kurtosis': -0.99792336, 'skewness': 0.91701432, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:53+00:00', 'date:modify': '2021-08-22T23:19:53+00:00', 'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '26'}, 'tainted': False, 'filesize': '19164B', 'numberPixels': '3600', 'pixelsPerSecond': '7490169B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 14,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99792336,
                                           'max': 16383,
                                           'mean': 4773.06,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91701432,
                                           'standardDeviation': 6829.2553},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0067604,
                                            'max': 16383,
                                            'mean': 4790.2309,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91206772,
                                            'standardDeviation': 6834.5041},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0010113,
                                          'max': 16383,
                                          'mean': 4782.3959,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91494407,
                                          'standardDeviation': 6829.1886}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '19164B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0011647,
                                            'max': 16383,
                                            'mean': 4781.8956,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91492813,
                                            'standardDeviation': 6830.9827}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7490169B',
            'properties': {'date:create': '2021-08-22T23:19:53+00:00',
                           'date:modify': '2021-08-22T23:19:53+00:00',
                           'signature': '8cca4ba687f8704ddfb37ae89e7c35f9c73ff62c30b29d472ab783fe8cc949fc',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '26'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'), _trace=<pluggy._tracing.TagTracerSub object at 0x7ff449810220>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1'))

src/img2pdf_test.py:2515: AssertionError
____________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[pdfrw] _____________________________________________________________________________________
[gw6] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...9ee31f0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "12", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 12, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 12, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4095, 'mean': 1194.9648, 'median': 0, 'standardDeviation': 1707.1256, 'kurtosis': -1.0010315, 'skewness': 0.91501655, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 4095, 'mean': 1195.0887, 'median': 0, 'standardDeviation': 1706.6778, 'kurtosis': -1.0008776, 'skewness': 0.91503326, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 4095, 'mean': 1197.0481, 'median': 0, 'standardDeviation': 1708.0055, 'kurtosis': -1.0066275, 'skewness': 0.91215625, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 4095, 'mean': 1192.7576, 'median': 0, 'standardDeviation': 1706.6937, 'kurtosis': -0.99779046, 'skewness': 0.91710177, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:54+00:00', 'date:modify': '2021-08-22T23:19:54+00:00', 'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '7761950B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 12,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99779046,
                                           'max': 4095,
                                           'mean': 1192.7576,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91710177,
                                           'standardDeviation': 1706.6937},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0066275,
                                            'max': 4095,
                                            'mean': 1197.0481,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91215625,
                                            'standardDeviation': 1708.0055},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0008776,
                                          'max': 4095,
                                          'mean': 1195.0887,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91503326,
                                          'standardDeviation': 1706.6778}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '16464B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0010315,
                                            'max': 4095,
                                            'mean': 1194.9648,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91501655,
                                            'standardDeviation': 1707.1256}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7761950B',
            'properties': {'date:create': '2021-08-22T23:19:54+00:00',
                           'date:modify': '2021-08-22T23:19:54+00:00',
                           'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '30'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fad19ee31f0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6'))

src/img2pdf_test.py:2463: AssertionError
___________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[pikepdf] ____________________________________________________________________________________
[gw5] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...50211c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "12", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 12, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 12, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4095, 'mean': 1194.9648, 'median': 0, 'standardDeviation': 1707.1256, 'kurtosis': -1.0010315, 'skewness': 0.91501655, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 4095, 'mean': 1195.0887, 'median': 0, 'standardDeviation': 1706.6778, 'kurtosis': -1.0008776, 'skewness': 0.91503326, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 4095, 'mean': 1197.0481, 'median': 0, 'standardDeviation': 1708.0055, 'kurtosis': -1.0066275, 'skewness': 0.91215625, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 4095, 'mean': 1192.7576, 'median': 0, 'standardDeviation': 1706.6937, 'kurtosis': -0.99779046, 'skewness': 0.91710177, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:54+00:00', 'date:modify': '2021-08-22T23:19:54+00:00', 'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '7896365B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 12,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99779046,
                                           'max': 4095,
                                           'mean': 1192.7576,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91710177,
                                           'standardDeviation': 1706.6937},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0066275,
                                            'max': 4095,
                                            'mean': 1197.0481,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91215625,
                                            'standardDeviation': 1708.0055},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0008776,
                                          'max': 4095,
                                          'mean': 1195.0887,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91503326,
                                          'standardDeviation': 1706.6778}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '16464B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0010315,
                                            'max': 4095,
                                            'mean': 1194.9648,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91501655,
                                            'standardDeviation': 1707.1256}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7896365B',
            'properties': {'date:create': '2021-08-22T23:19:54+00:00',
                           'date:modify': '2021-08-22T23:19:54+00:00',
                           'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '30'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'), _trace=<pluggy._tracing.TagTracerSub object at 0x7f25450211c0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5'))

src/img2pdf_test.py:2463: AssertionError
___________________________________________________________________________________ ERROR at setup of test_tiff_rgb12[internal] ___________________________________________________________________________________
[gw3] linux -- Python 3.8.11 /usr/bin/python3.8

tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0...094a2e0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3'))
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/normal16_png0/normal16.png')

    @pytest.fixture(scope="session")
    def tiff_rgb12_img(tmp_path_factory, tmp_normal16_png):
        in_img = tmp_path_factory.mktemp("tiff_rgb8") / "in.tiff"
        subprocess.check_call(
            ["convert", str(tmp_normal16_png), "-depth", "12", str(in_img)]
        )
        identify = json.loads(subprocess.check_output(["convert", str(in_img), "json:"]))
        assert len(identify) == 1
        # somewhere between imagemagick 6.9.7.4 and 6.9.9.34, the json output was
        # put into an array, here we cater for the older version containing just
        # the bare dictionary
        if "image" in identify:
            identify = [identify]
        assert "image" in identify[0]
        assert identify[0]["image"].get("format") == "TIFF", str(identify)
        assert identify[0]["image"].get("mimeType") == "image/tiff", str(identify)
        assert identify[0]["image"].get("geometry") == {
            "width": 60,
            "height": 60,
            "x": 0,
            "y": 0,
        }, str(identify)
        assert identify[0]["image"].get("colorspace") == "sRGB", str(identify)
        assert identify[0]["image"].get("type") == "TrueColor", str(identify)
        endian = "endianess" if identify[0].get("version", "0") < "1.0" else "endianness"
        assert identify[0]["image"].get(endian) in ["Undefined", "LSB",], str(
            identify
        )  # FIXME: should be LSB
        if identify[0].get("version", "0") < "1.0":
            assert identify[0]["image"].get("depth") == 12, str(identify)
        else:
>           assert identify[0]["image"].get("depth") == 16, str(identify)
E           AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/tiff_rgb80/in.tiff', 'baseName': 'in.tiff', 'format': 'TIFF', 'formatDescription': 'TIFF', 'mimeType': 'image/tiff', 'class': 'DirectClass', 'geometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'units': 'PixelsPerInch', 'type': 'TrueColor', 'endianness': 'LSB', 'colorspace': 'sRGB', 'depth': 32, 'baseDepth': 12, 'channelDepth': {'red': 32, 'green': 32, 'blue': 1}, 'pixels': 10800, 'imageStatistics': {'Overall': {'min': 0, 'max': 4095, 'mean': 1194.9648, 'median': 0, 'standardDeviation': 1707.1256, 'kurtosis': -1.0010315, 'skewness': 0.91501655, 'entropy': 0.45560277}}, 'channelStatistics': {'red': {'min': 0, 'max': 4095, 'mean': 1195.0887, 'median': 0, 'standardDeviation': 1706.6778, 'kurtosis': -1.0008776, 'skewness': 0.91503326, 'entropy': 0.45681467}, 'green': {'min': 0, 'max': 4095, 'mean': 1197.0481, 'median': 0, 'standardDeviation': 1708.0055, 'kurtosis': -1.0066275, 'skewness': 0.91215625, 'entropy': 0.45564261}, 'blue': {'min': 0, 'max': 4095, 'mean': 1192.7576, 'median': 0, 'standardDeviation': 1706.6937, 'kurtosis': -0.99779046, 'skewness': 0.91710177, 'entropy': 0.45435104}}, 'renderingIntent': 'Perceptual', 'gamma': 0.454545, 'chromaticity': {'redPrimary': {'x': 0.64, 'y': 0.33}, 'greenPrimary': {'x': 0.3, 'y': 0.6}, 'bluePrimary': {'x': 0.15, 'y': 0.06}, 'whitePrimary': {'x': 0.3127, 'y': 0.329}}, 'matteColor': '#BDBDBD', 'backgroundColor': '#FFFFFF', 'borderColor': '#DFDFDF', 'transparentColor': '#00000000', 'interlace': 'None', 'intensity': 'Undefined', 'compose': 'Over', 'pageGeometry': {'width': 60, 'height': 60, 'x': 0, 'y': 0}, 'dispose': 'Undefined', 'iterations': 0, 'compression': 'None', 'orientation': 'TopLeft', 'properties': {'date:create': '2021-08-22T23:19:54+00:00', 'date:modify': '2021-08-22T23:19:54+00:00', 'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d', 'tiff:alpha': 'unspecified', 'tiff:endian': 'lsb', 'tiff:photometric': 'RGB', 'tiff:rows-per-strip': '30'}, 'tainted': False, 'filesize': '16464B', 'numberPixels': '3600', 'pixelsPerSecond': '7936578B', 'userTime': '0.000u', 'elapsedTime': '0:01.000', 'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 https://imagemagick.org'}}]
E           assert 32 == 16
E             +32
E             -16

endian     = 'endianness'
identify   = [{'image': {'backgroundColor': '#FFFFFF',
            'baseDepth': 12,
            'baseName': 'in.tiff',
            'borderColor': '#DFDFDF',
            'channelDepth': {'blue': 1, 'green': 32, 'red': 32},
            'channelStatistics': {'blue': {'entropy': 0.45435104,
                                           'kurtosis': -0.99779046,
                                           'max': 4095,
                                           'mean': 1192.7576,
                                           'median': 0,
                                           'min': 0,
                                           'skewness': 0.91710177,
                                           'standardDeviation': 1706.6937},
                                  'green': {'entropy': 0.45564261,
                                            'kurtosis': -1.0066275,
                                            'max': 4095,
                                            'mean': 1197.0481,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91215625,
                                            'standardDeviation': 1708.0055},
                                  'red': {'entropy': 0.45681467,
                                          'kurtosis': -1.0008776,
                                          'max': 4095,
                                          'mean': 1195.0887,
                                          'median': 0,
                                          'min': 0,
                                          'skewness': 0.91503326,
                                          'standardDeviation': 1706.6778}},
            'chromaticity': {'bluePrimary': {'x': 0.15, 'y': 0.06},
                             'greenPrimary': {'x': 0.3, 'y': 0.6},
                             'redPrimary': {'x': 0.64, 'y': 0.33},
                             'whitePrimary': {'x': 0.3127, 'y': 0.329}},
            'class': 'DirectClass',
            'colorspace': 'sRGB',
            'compose': 'Over',
            'compression': 'None',
            'depth': 32,
            'dispose': 'Undefined',
            'elapsedTime': '0:01.000',
            'endianness': 'LSB',
            'filesize': '16464B',
            'format': 'TIFF',
            'formatDescription': 'TIFF',
            'gamma': 0.454545,
            'geometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'imageStatistics': {'Overall': {'entropy': 0.45560277,
                                            'kurtosis': -1.0010315,
                                            'max': 4095,
                                            'mean': 1194.9648,
                                            'median': 0,
                                            'min': 0,
                                            'skewness': 0.91501655,
                                            'standardDeviation': 1707.1256}},
            'intensity': 'Undefined',
            'interlace': 'None',
            'iterations': 0,
            'matteColor': '#BDBDBD',
            'mimeType': 'image/tiff',
            'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/tiff_rgb80/in.tiff',
            'numberPixels': '3600',
            'orientation': 'TopLeft',
            'pageGeometry': {'height': 60, 'width': 60, 'x': 0, 'y': 0},
            'pixels': 10800,
            'pixelsPerSecond': '7936578B',
            'properties': {'date:create': '2021-08-22T23:19:54+00:00',
                           'date:modify': '2021-08-22T23:19:54+00:00',
                           'signature': 'fa10fdd9a22d9e666d0220b4aa501fcfa4c6fde32affdef69bf487a53be77b2d',
                           'tiff:alpha': 'unspecified',
                           'tiff:endian': 'lsb',
                           'tiff:photometric': 'RGB',
                           'tiff:rows-per-strip': '30'},
            'renderingIntent': 'Perceptual',
            'tainted': False,
            'transparentColor': '#00000000',
            'type': 'TrueColor',
            'units': 'PixelsPerInch',
            'userTime': '0.000u',
            'version': 'ImageMagick 7.1.0-4 Q32 x86_64 2021-07-18 '
                       'https://imagemagick.org'},
  'version': '1.0'}]
in_img     = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/tiff_rgb80/in.tiff')
tmp_normal16_png = PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/normal16_png0/normal16.png')
tmp_path_factory = TempPathFactory(_given_basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3'), _trace=<pluggy._tracing.TagTracerSub object at 0x7fd9a094a2e0>, _basetemp=PosixPath('/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3'))

src/img2pdf_test.py:2463: AssertionError
============================================================================================= short test summary info =============================================================================================
ERROR src/img2pdf_test.py::test_tiff_float[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_float_im...
ERROR src/img2pdf_test.py::test_tiff_float[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw0/tiff_float_i...
ERROR src/img2pdf_test.py::test_tiff_float[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw2/tiff_float_img0...
ERROR src/img2pdf_test.py::test_tiff_rgb14[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/i...
ERROR src/img2pdf_test.py::test_tiff_rgb14[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in...
ERROR src/img2pdf_test.py::test_tiff_rgb14[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw1/tiff_rgb82/in.t...
ERROR src/img2pdf_test.py::test_tiff_rgb12[pdfrw] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw6/tiff_rgb80/in.t...
ERROR src/img2pdf_test.py::test_tiff_rgb12[pikepdf] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw5/tiff_rgb80/in...
ERROR src/img2pdf_test.py::test_tiff_rgb12[internal] - AssertionError: [{'version': '1.0', 'image': {'name': '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/pytest-of-portage/pytest-0/popen-gw3/tiff_rgb80/i...
========================================================================================= 339 passed, 9 errors in 26.37s ==========================================================================================
 * ERROR: media-gfx/img2pdf-0.4.1-r1::local failed (test phase):
 *   pytest failed with python3.8
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_test
 *   environment, line 2861:  Called distutils-r1_src_test
 *   environment, line 1235:  Called _distutils-r1_run_foreach_impl 'python_test'
 *   environment, line  490:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2521:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2052:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test'
 *   environment, line 2050:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test'
 *   environment, line  791:  Called distutils-r1_run_phase 'python_test'
 *   environment, line 1174:  Called python_test
 *   environment, line 2817:  Called epytest '-n' 'auto'
 *   environment, line 1568:  Called die
 * The specific snippet of code:
 *       "${@}" || die -n "pytest failed with ${EPYTHON}";
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/img2pdf-0.4.1-r1::local'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/img2pdf-0.4.1-r1::local'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1'
 * S: '/var/tmp/portage/media-gfx/img2pdf-0.4.1-r1/work/img2pdf-0.4.1'