Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1fd994

Browse files
committed
Minor cleanups for tests.
Remove an extraneous plt.show(). Make the triage_test window's minimal size smaller (so that it fits in smaller screens).
1 parent 1bf8282 commit e1fd994

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/matplotlib/tests/test_text.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ def test_agg_text_clip():
396396
for x, y in np.random.rand(10, 2):
397397
ax1.text(x, y, "foo", clip_on=True)
398398
ax2.text(x, y, "foo")
399-
plt.show()
400399

401400

402401
def test_text_size_binding():

tools/triage_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def __init__(self, parent, index, name):
6969
self.image = QtWidgets.QLabel()
7070
self.image.setAlignment(QtCore.Qt.AlignHCenter |
7171
QtCore.Qt.AlignVCenter)
72-
self.image.setMinimumSize(800/3, 600/3)
72+
self.image.setMinimumSize(800/3, 500/3)
7373
layout.addWidget(self.image)
7474
self.setLayout(layout)
7575

@@ -139,7 +139,7 @@ def __init__(self, entries):
139139
self.image_display = QtWidgets.QLabel()
140140
self.image_display.setAlignment(QtCore.Qt.AlignHCenter |
141141
QtCore.Qt.AlignVCenter)
142-
self.image_display.setMinimumSize(800, 600)
142+
self.image_display.setMinimumSize(800, 500)
143143
images_layout.addWidget(thumbnails_box, 3)
144144
images_layout.addWidget(self.image_display, 6)
145145
images_box.setLayout(images_layout)

0 commit comments

Comments
 (0)