File: skip_test_pil_image.patch

package info (click to toggle)
python-pyface 8.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,944 kB
  • sloc: python: 54,107; makefile: 82
file content (26 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: skip test_pil_image if pillow >= 10 
Bug-<Vendor>: https://github.com/enthought/pyface/issues/1255 
Last-Update: 2023-09-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/pyface/tests/test_pil_image.py
+++ b/pyface/tests/test_pil_image.py
@@ -23,6 +23,9 @@
 
 Image = None
 
+#The work-around is to restrict to pillow < 10.0 or not use Pillow at all.
+#see https://github.com/enthought/pyface/issues/1255
+'''
 with optional_import(
         "PIL",
         msg="PILImage not available due to missing pillow.",
@@ -32,7 +35,7 @@
     from ..pil_image import PILImage
 
 image_source = files("pyface.tests") / "images" / "core.png"
-
+'''
 
 @unittest.skipIf(Image is None, "Pillow not available")
 class TestPILImage(unittest.TestCase):