aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-21 12:45:23 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2022-03-21 13:47:05 +0100
commitec7ad296f48f3f1856c3eb7cc3685249a096d6b8 (patch)
tree75074bb9b6eff48cadf0d8364b89e9ae8ad3bdc9
parentde0c976d67e1bf3b5b34408672ee9c5502b32362 (diff)
Fix failing test qimage_test.py
qtbase/019d0dd4b49d5a0e9cbb73829158e798ea25fd86 extended QImage::operator==() to also compare the color space. This causes image comparison to fail when reading from file and converting. Pick-to: 6.2 Change-Id: I302998954ce24fc4a6ae1823dea7c62f23031bcd Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/pyside6/tests/QtGui/qimage_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtGui/qimage_test.py b/sources/pyside6/tests/QtGui/qimage_test.py
index b2dd7304a..45c9baf0c 100644
--- a/sources/pyside6/tests/QtGui/qimage_test.py
+++ b/sources/pyside6/tests/QtGui/qimage_test.py
@@ -285,8 +285,10 @@ class QImageTest(UsesQGuiApplication):
# btw let's test the bits() method
img1 = QImage(img0.bits(), img0.width(), img0.height(), img0.format())
+ img1.setColorSpace(img0.colorSpace())
self.assertEqual(img0, img1)
img2 = QImage(img0.bits(), img0.width(), img0.height(), img0.bytesPerLine(), img0.format())
+ img2.setColorSpace(img0.colorSpace())
self.assertEqual(img0, img2)
## test scanLine method