mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-20 12:40:31 +08:00
Do not require jpg support from io plugins in novice test
This commit is contained in:
@@ -143,14 +143,14 @@ def test_update_on_save():
|
||||
assert pic.modified
|
||||
assert pic.path is None
|
||||
|
||||
fd, filename = tempfile.mkstemp(suffix=".jpg")
|
||||
fd, filename = tempfile.mkstemp(suffix=".png")
|
||||
os.close(fd)
|
||||
try:
|
||||
pic.save(filename)
|
||||
|
||||
assert not pic.modified
|
||||
assert_equal(pic.path, os.path.abspath(filename))
|
||||
assert_equal(pic.format, "jpeg")
|
||||
assert_equal(pic.format, "png")
|
||||
finally:
|
||||
os.unlink(filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user