Partial test for font not found; Travis is Linux but has no XDG_DATA_DIRS env variable

This commit is contained in:
hugovk 2014-05-31 17:38:13 +03:00
parent 0907ab0ccf
commit cef6a2c22c

View File

@ -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