mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Fix wrong indentation for assert
This commit is contained in:
parent
3bb180a254
commit
ef51e7a1c7
|
@ -480,9 +480,9 @@ def test_load_path_not_found() -> None:
|
||||||
with pytest.raises(OSError) as e:
|
with pytest.raises(OSError) as e:
|
||||||
ImageFont.load_path(filename)
|
ImageFont.load_path(filename)
|
||||||
|
|
||||||
# The file doesn't exist, so don't suggest `load`
|
# The file doesn't exist, so don't suggest `load`
|
||||||
assert filename in str(e.value)
|
assert filename in str(e.value)
|
||||||
assert "did you mean" not in str(e.value)
|
assert "did you mean" not in str(e.value)
|
||||||
with pytest.raises(OSError):
|
with pytest.raises(OSError):
|
||||||
ImageFont.truetype(filename)
|
ImageFont.truetype(filename)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user