From 2cdc4e19f7643ad3ba0fd2deed5792c62a9b89c6 Mon Sep 17 00:00:00 2001 From: aaronayres35 <36972686+aaronayres35@users.noreply.github.com> Date: Tue, 20 Jul 2021 05:01:28 -0700 Subject: [PATCH 1/3] Fix the dpi related cron job failures (#875) * add an int() call to fix test suite failures * use round not int --- kiva/tests/drawing_tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiva/tests/drawing_tester.py b/kiva/tests/drawing_tester.py index b7b851c83..b3c06bcac 100644 --- a/kiva/tests/drawing_tester.py +++ b/kiva/tests/drawing_tester.py @@ -186,7 +186,7 @@ def save_and_return_dpi(self): self.gc.save(filename) with Image.open(filename) as image: dpi = image.info['dpi'] - return dpi[0] + return round(dpi[0]) @contextlib.contextmanager def draw_and_check(self): From 7a47bcf674aba158e237ba7024e03ec641880900 Mon Sep 17 00:00:00 2001 From: Aaron Ayres Date: Tue, 20 Jul 2021 07:32:06 -0500 Subject: [PATCH 2/3] update changelog withh latest fix --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.txt b/CHANGES.txt index 9e4e1611a..a8acabd59 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,7 @@ Fixes ----- * Fix FontManager bug when no fonts are available (#871) +* Fix the dpi related cron job failures (#875) Enable 5.2.0 ============ From 19e6129b43fa220240ebf900a2f83e89782d15d4 Mon Sep 17 00:00:00 2001 From: aaronayres35 <36972686+aaronayres35@users.noreply.github.com> Date: Tue, 20 Jul 2021 06:36:34 -0700 Subject: [PATCH 3/3] Update CHANGES.txt Co-authored-by: Poruri Sai Rahul --- CHANGES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index a8acabd59..5b72f9aa2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,7 +8,7 @@ Fixes ----- * Fix FontManager bug when no fonts are available (#871) -* Fix the dpi related cron job failures (#875) +* Fix the dpi rounding issues with newer versions of pillow (#875) Enable 5.2.0 ============