We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 638eb1b + d85fa7a commit 5e26d2fCopy full SHA for 5e26d2f
Tests/test_file_wmf.py
@@ -44,6 +44,18 @@ def test_load_zero_inch() -> None:
44
pass
45
46
47
+def test_load_unsupported_wmf() -> None:
48
+ b = BytesIO(b"\xd7\xcd\xc6\x9a\x00\x00" + b"\x01" * 10)
49
+ with pytest.raises(SyntaxError, match="Unsupported WMF file format"):
50
+ WmfImagePlugin.WmfStubImageFile(b)
51
+
52
53
+def test_load_unsupported() -> None:
54
+ b = BytesIO(b"\x01\x00\x00\x00")
55
+ with pytest.raises(SyntaxError, match="Unsupported file format"):
56
57
58
59
def test_render() -> None:
60
with open("Tests/images/drawing.emf", "rb") as fp:
61
data = fp.read()
0 commit comments