45558e3
--- a/src/img2pdf_test.py	2023-01-22 18:36:32.208977359 +0100
45558e3
+++ b/src/img2pdf_test.py	2023-01-22 18:39:52.918531386 +0100
45558e3
@@ -345,7 +345,7 @@
45558e3
             stderr=subprocess.PIPE,
45558e3
         ).stderr
45558e3
         assert psnr != b"0"
45558e3
-        psnr = float(psnr.strip(b"0"))
45558e3
+        psnr = float(psnr.split()[0])
45558e3
         assert psnr != 0  # or otherwise we would use the exact variant
45558e3
         assert psnr > 50
45558e3
 
45558e3
@@ -501,7 +501,7 @@
45558e3
                 stderr=subprocess.PIPE,
45558e3
             ).stderr
45558e3
         assert psnr != b"0"
45558e3
-        psnr = float(psnr.strip(b"0"))
45558e3
+        psnr = float(psnr.split()[0])
45558e3
         assert psnr != 0  # or otherwise we would use the exact variant
45558e3
         assert psnr > 50
45558e3
     (tmpdir / "images-000.png").unlink()