Skip to content

Commit

Permalink
Allow some variation with rotate due to py2/3 Pillow3/4/5 variation
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeon committed Feb 26, 2018
1 parent 2e63d15 commit ab3d101
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_manipulator_pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def test06_do_rotation(self):
# rotate
m.do_first()
self.assertEqual(m.do_rotation(False, 30.0), None)
self.assertEqual(m.image.size, (218, 202))
# there is variability between Pillow 4 & 5 py2/3,
# so allow some variation
(w, h) = m.image.size
self.assertIn(w, (218, 219))
self.assertIn(h, (201, 202))

def test07_do_quality(self):
"""Test quality selection."""
Expand Down

0 comments on commit ab3d101

Please sign in to comment.