mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
test for issue #2614
This commit is contained in:
parent
3dd3a90646
commit
d2b3e60bbb
|
@ -393,6 +393,11 @@ class TestImageFont(PillowTestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assert_image_equal(im, target_img)
|
self.assert_image_equal(im, target_img)
|
||||||
|
|
||||||
|
def test_getsize_empty(self):
|
||||||
|
font = self.get_font()
|
||||||
|
# should not crash.
|
||||||
|
self.assertEqual((0, 0), font.getsize(''))
|
||||||
|
|
||||||
def _test_fake_loading_font(self, path_to_fake, fontname):
|
def _test_fake_loading_font(self, path_to_fake, fontname):
|
||||||
# Make a copy of FreeTypeFont so we can patch the original
|
# Make a copy of FreeTypeFont so we can patch the original
|
||||||
free_type_font = copy.deepcopy(ImageFont.FreeTypeFont)
|
free_type_font = copy.deepcopy(ImageFont.FreeTypeFont)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user