mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
Open image files in default binary write mode
Fixes test failure on Windows
This commit is contained in:
committed by
Stefan van der Walt
parent
cba654cbda
commit
d94da9ae47
@@ -85,7 +85,7 @@ def test_repr_png():
|
||||
original_img = imread(img_path)
|
||||
original_img_str = original_img._repr_png_()
|
||||
|
||||
with NamedTemporaryFile(suffix='.png', mode='r+') as temp_png:
|
||||
with NamedTemporaryFile(suffix='.png') as temp_png:
|
||||
temp_png.write(original_img_str)
|
||||
temp_png.seek(0)
|
||||
round_trip = imread(temp_png)
|
||||
|
||||
Reference in New Issue
Block a user