void-packages/srcpkgs/img2pdf/patches/imdepth.patch
2021-03-15 17:25:33 +01:00

22 lines
1 KiB
Diff

--- a/src/img2pdf_test.py
+++ b/src/img2pdf_test.py
@@ -2439,7 +2439,8 @@ def tiff_rgb12_img(tmp_path_factory, tmp
assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
identify
) # FIXME: should be LSB
- assert identify[0]["image"].get("depth") == 12, str(identify)
+ assert identify[0]["image"].get("depth") == 16, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 12, str(identify)
assert identify[0]["image"].get("pageGeometry") == {
"width": 60,
"height": 60,
@@ -2490,7 +2491,8 @@ def tiff_rgb14_img(tmp_path_factory, tmp
assert identify[0]["image"].get("endianness") in ["Undefined", "LSB",], str(
identify
) # FIXME: should be LSB
- assert identify[0]["image"].get("depth") == 14, str(identify)
+ assert identify[0]["image"].get("depth") == 16, str(identify)
+ assert identify[0]["image"].get("baseDepth") == 14, str(identify)
assert identify[0]["image"].get("pageGeometry") == {
"width": 60,
"height": 60,