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.
1 parent 9334bf0 commit c7e3158Copy full SHA for c7e3158
Tests/test_image.py
@@ -175,6 +175,13 @@ def test_stringio(self) -> None:
175
with Image.open(io.StringIO()): # type: ignore[arg-type]
176
pass
177
178
+ def test_string(self, tmp_path: Path) -> None:
179
+ out = str(tmp_path / "temp.png")
180
+ im = hopper()
181
+ im.save(out)
182
+ with Image.open(out) as reloaded:
183
+ assert_image_equal(im, reloaded)
184
+
185
def test_pathlib(self, tmp_path: Path) -> None:
186
with Image.open(Path("Tests/images/multipage-mmap.tiff")) as im:
187
assert im.mode == "P"
0 commit comments