Skip to content

Commit

Permalink
Backport cron job fix (#876)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

Co-authored-by: Poruri Sai Rahul <[email protected]>
  • Loading branch information
aaronayres35 and Poruri Sai Rahul authored Jul 20, 2021
1 parent e0fdc59 commit e1b5825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
============
Expand Down
2 changes: 1 addition & 1 deletion kiva/tests/drawing_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e1b5825

Please sign in to comment.