From e760b02bfa37584400eb936277ea97a1146f214b Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 19 Oct 2023 20:34:28 +1100 Subject: [PATCH] Combine if and assert statement --- Tests/test_file_palm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/test_file_palm.py b/Tests/test_file_palm.py index ecf512041..926fdb26f 100644 --- a/Tests/test_file_palm.py +++ b/Tests/test_file_palm.py @@ -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)