Merge pull request #6967 from radarhere/qt

Relax roundtrip check
This commit is contained in:
Hugo van Kemenade 2023-02-23 20:27:22 +02:00 committed by GitHub
commit 8cc5396659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ if ImageQt.qt_is_installed:
def roundtrip(expected):
result = ImageQt.fromqpixmap(ImageQt.toqpixmap(expected))
# Qt saves all pixmaps as rgb
assert_image_similar(result, expected.convert("RGB"), 0.3)
assert_image_similar(result, expected.convert("RGB"), 0.5)
@pytest.mark.skipif(not ImageQt.qt_is_installed, reason="Qt bindings are not installed")