8000 Suppress triage_tests warning on Py3.8. · matplotlib/matplotlib@262b024 · GitHub
[go: up one dir, main page]

Skip to content

Commit 262b024

Browse files
committed
Suppress triage_tests warning on Py3.8.
Without the patch, one gets DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. when running triage_tests.py.
1 parent 66f7968 commit 262b024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/triage_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, parent, index, name):
6868
self.image = QtWidgets.QLabel()
6969
self.image.setAlignment(QtCore.Qt.AlignHCenter |
7070
QtCore.Qt.AlignVCenter)
71-
self.image.setMinimumSize(800/3, 600/3)
71+
self.image.setMinimumSize(800 // 3, 600 // 3)
7272
layout.addWidget(self.image)
7373
self.setLayout(layout)
7474

0 commit comments

Comments
 (0)
0