mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-09 07:27:33 +08:00
fix permissions issue in test_pil.py function test_png_round_trip()
This commit is contained in:
@@ -42,9 +42,11 @@ def setup_module(self):
|
||||
def test_png_round_trip():
|
||||
f = NamedTemporaryFile(suffix='.png')
|
||||
fname = f.name
|
||||
f.close()
|
||||
I = np.eye(3)
|
||||
imsave(fname, I)
|
||||
Ip = img_as_float(imread(fname))
|
||||
os.remove(fname)
|
||||
assert np.sum(np.abs(Ip-I)) < 1e-3
|
||||
|
||||
def test_imread_flatten():
|
||||
|
||||
Reference in New Issue
Block a user