relax image tolerance for PySide6
This commit is contained in:
parent
28c0ea4b33
commit
d0a7ceea2d
@ -257,7 +257,7 @@ def assertImageMatch(im1, im2, minCorr=None, pxThreshold=50.,
|
|||||||
assert im1.dtype == im2.dtype
|
assert im1.dtype == im2.dtype
|
||||||
|
|
||||||
if pxCount == -1:
|
if pxCount == -1:
|
||||||
if QT_LIB in {'PyQt5', 'PySide2'}:
|
if QT_LIB in {'PyQt5', 'PySide2', 'PySide6'}:
|
||||||
# Qt5 generates slightly different results; relax the tolerance
|
# Qt5 generates slightly different results; relax the tolerance
|
||||||
# until test images are updated.
|
# until test images are updated.
|
||||||
pxCount = int(im1.shape[0] * im1.shape[1] * 0.01)
|
pxCount = int(im1.shape[0] * im1.shape[1] * 0.01)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user