Skip to content

Commit

Permalink
Combine if and assert statement
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 19, 2023
1 parent 8b71f3d commit e760b02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/test_file_palm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit e760b02

Please sign in to comment.