forked from pool/python-python-poppler
- Add fix-image-argb-test.patch to fix image format tests OBS-URL: https://build.opensuse.org/request/show/880432 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-poppler?expand=0&rev=3
16 lines
508 B
Diff
16 lines
508 B
Diff
Index: b/tests/test_image.py
|
|
===================================================================
|
|
--- a/tests/test_image.py
|
|
+++ b/tests/test_image.py
|
|
@@ -40,8 +40,8 @@ def test_data_size(pdf_page):
|
|
|
|
|
|
def test_image_format_to_str():
|
|
- assert str(Image.Format.argb32) == "BGRA"
|
|
- assert str(Image.Format.invalid) == ""
|
|
+ assert str(Image.Format.argb32) in ("BGRA", "format_enum.argb32")
|
|
+ assert str(Image.Format.invalid) in ("", "format_enum.invalid")
|
|
|
|
|
|
def test_image_memory_view(pdf_page):
|