mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-06 21:40:09 +03:00
Partial test for font not found; Travis is Linux but has no XDG_DATA_DIRS env variable
This commit is contained in:
parent
0907ab0ccf
commit
cef6a2c22c
|
@ -83,7 +83,7 @@ def test_render_multiline():
|
||||||
|
|
||||||
target = 'Tests/images/multiline_text.png'
|
target = 'Tests/images/multiline_text.png'
|
||||||
target_img = Image.open(target)
|
target_img = Image.open(target)
|
||||||
|
|
||||||
# some versions of freetype have different horizontal spacing.
|
# some versions of freetype have different horizontal spacing.
|
||||||
# setting a tight epsilon, I'm showing the original test failure
|
# setting a tight epsilon, I'm showing the original test failure
|
||||||
# at epsilon = ~38.
|
# at epsilon = ~38.
|
||||||
|
@ -133,3 +133,8 @@ def test_unrotated_transposed_font():
|
||||||
assert_equal(box_size_a, box_size_b)
|
assert_equal(box_size_a, box_size_b)
|
||||||
|
|
||||||
|
|
||||||
|
def test_font_not_found():
|
||||||
|
assert_exception(IOError, lambda: ImageFont.truetype("/fake/font.ttf"))
|
||||||
|
|
||||||
|
|
||||||
|
# End of file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user