forked from pool/python-python-poppler
Accepting request 880432 from home:frispete:python
- 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
This commit is contained in:
15
fix-image-argb-test.patch
Normal file
15
fix-image-argb-test.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
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):
|
Reference in New Issue
Block a user