relax image tolerance for PySide6

This commit is contained in:
KIU Shueng Chuan 2021-01-16 13:54:54 +08:00
parent 28c0ea4b33
commit d0a7ceea2d

View File

@ -257,7 +257,7 @@ def assertImageMatch(im1, im2, minCorr=None, pxThreshold=50.,
assert im1.dtype == im2.dtype
if pxCount == -1:
if QT_LIB in {'PyQt5', 'PySide2'}:
if QT_LIB in {'PyQt5', 'PySide2', 'PySide6'}:
# Qt5 generates slightly different results; relax the tolerance
# until test images are updated.
pxCount = int(im1.shape[0] * im1.shape[1] * 0.01)