mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Combine if and assert statement
This commit is contained in:
parent
8b71f3d3c1
commit
e760b02bfa
|
@ -26,8 +26,7 @@ def open_with_magick(magick, tmp_path, f):
|
|||
rc = subprocess.call(
|
||||
magick + [f, outfile], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT
|
||||
)
|
||||
if rc:
|
||||
assert False
|
||||
assert not rc
|
||||
return Image.open(outfile)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user