Commit cc8506ec authored by Terry Jan Reedy's avatar Terry Jan Reedy

Update int division to quiet 2to3 warning.

parent 6fb6f8cf
...@@ -26,8 +26,8 @@ class WidgetTest(unittest.TestCase): ...@@ -26,8 +26,8 @@ class WidgetTest(unittest.TestCase):
def test_identify(self): def test_identify(self):
self.widget.update_idletasks() self.widget.update_idletasks()
self.assertEqual(self.widget.identify( self.assertEqual(self.widget.identify(
int(self.widget.winfo_width() / 2), self.widget.winfo_width() // 2,
int(self.widget.winfo_height() / 2) self.widget.winfo_height() // 2
), "label") ), "label")
self.assertEqual(self.widget.identify(-1, -1), "") self.assertEqual(self.widget.identify(-1, -1), "")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment