From e1b5825c225779013abdfc9933ae4042aab22cf0 Mon Sep 17 00:00:00 2001 From: aaronayres35 <36972686+aaronayres35@users.noreply.github.com> Date: Tue, 20 Jul 2021 06:49:16 -0700 Subject: [PATCH] Backport cron job fix (#876) * Fix the dpi related cron job failures (#875) * add an int() call to fix test suite failures * use round not int * update changelog withh latest fix * Update CHANGES.txt Co-authored-by: Poruri Sai Rahul Co-authored-by: Poruri Sai Rahul --- CHANGES.txt | 1 + kiva/tests/drawing_tester.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9e4e1611a..5b72f9aa2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -8,6 +8,7 @@ Fixes ----- * Fix FontManager bug when no fonts are available (#871) +* Fix the dpi rounding issues with newer versions of pillow (#875) Enable 5.2.0 ============ 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):