diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-21 12:45:23 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-21 13:47:05 +0100 |
commit | ec7ad296f48f3f1856c3eb7cc3685249a096d6b8 (patch) | |
tree | 75074bb9b6eff48cadf0d8364b89e9ae8ad3bdc9 | |
parent | de0c976d67e1bf3b5b34408672ee9c5502b32362 (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.py | 2 |
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 |