void-packages/srcpkgs/img2pdf/patches/imdepth.patch

23 lines
1 KiB
Diff
Raw Normal View History

2021-03-08 17:04:18 +00:00
--- 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,