Skip to content

Commit

Permalink
Fix the dpi related cron job failures (#875)
Browse files Browse the repository at this point in the history
* add an int() call to fix test suite failures

* use round not int
  • Loading branch information
aaronayres35 committed Jul 20, 2021
1 parent 5017799 commit 3d469b4
Showing 1 changed file with 1 addition and 1 deletion.
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 3d469b4

Please sign in to comment.