Fix wrong indentation for assert

This commit is contained in:
Yngve Mardal Moe 2024-09-01 19:49:44 +00:00
parent 3bb180a254
commit ef51e7a1c7

View File

@ -480,9 +480,9 @@ def test_load_path_not_found() -> None:
with pytest.raises(OSError) as e:
ImageFont.load_path(filename)
# The file doesn't exist, so don't suggest `load`
assert filename in str(e.value)
assert "did you mean" not in str(e.value)
# The file doesn't exist, so don't suggest `load`
assert filename in str(e.value)
assert "did you mean" not in str(e.value)
with pytest.raises(OSError):
ImageFont.truetype(filename)