mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Fix test TestImageFont.test_textsize_equal
The current test failed on SLE11SP3 so use assert_image_similar() for the test. This fixes issue 1202.
This commit is contained in:
parent
74f81f43ea
commit
80a8463225
|
@ -126,7 +126,7 @@ try:
|
||||||
|
|
||||||
target = 'Tests/images/rectangle_surrounding_text.png'
|
target = 'Tests/images/rectangle_surrounding_text.png'
|
||||||
target_img = Image.open(target)
|
target_img = Image.open(target)
|
||||||
self.assert_image_equal(im, target_img)
|
self.assert_image_similar(im, target_img, .5)
|
||||||
|
|
||||||
def test_render_multiline(self):
|
def test_render_multiline(self):
|
||||||
im = Image.new(mode='RGB', size=(300, 100))
|
im = Image.new(mode='RGB', size=(300, 100))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user