Added pragma no cover

This commit is contained in:
Andrew Murray 2021-02-14 07:58:16 +11:00
parent 83542c42bf
commit a1b4b026ff

View File

@ -172,7 +172,7 @@ def test_short_header():
def short_header(): def short_header():
with Image.open(BytesIO(img_file[:119])): with Image.open(BytesIO(img_file[:119])):
pass pass # pragma: no cover
with pytest.raises(OSError): with pytest.raises(OSError):
short_header() short_header()