diff --git a/pyqtgraph/graphicsItems/tests/test_ImageItem.py b/pyqtgraph/graphicsItems/tests/test_ImageItem.py index b88d185a..e247abe3 100644 --- a/pyqtgraph/graphicsItems/tests/test_ImageItem.py +++ b/pyqtgraph/graphicsItems/tests/test_ImageItem.py @@ -103,11 +103,11 @@ def test_ImageItem(transpose=False): img.setAutoDownsample(True) assertImageApproved(w, 'imageitem/resolution_with_downsampling_x', 'Resolution test with downsampling axross x axis.') - assert img._lastDownsample == (5, 1) + assert img._lastDownsample == (4, 1) img.setImage(data.T, levels=[-1, 1]) assertImageApproved(w, 'imageitem/resolution_with_downsampling_y', 'Resolution test with downsampling across y axis.') - assert img._lastDownsample == (1, 5) + assert img._lastDownsample == (1, 4) view.hide() diff --git a/pyqtgraph/graphicsItems/tests/test_ROI.py b/pyqtgraph/graphicsItems/tests/test_ROI.py index cfc03575..2837119d 100644 --- a/pyqtgraph/graphicsItems/tests/test_ROI.py +++ b/pyqtgraph/graphicsItems/tests/test_ROI.py @@ -25,8 +25,8 @@ def test_getArrayRegion(): try: pg.setConfigOptions(imageAxisOrder='col-major') check_getArrayRegion(roi, 'roi/'+name, testResize) - #pg.setConfigOptions(imageAxisOrder='row-major') - #check_getArrayRegion(roi, 'roi/'+name, testResize, transpose=True) + pg.setConfigOptions(imageAxisOrder='row-major') + check_getArrayRegion(roi, 'roi/'+name, testResize, transpose=True) finally: pg.setConfigOptions(imageAxisOrder=origMode)