diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-07-28 00:28:53 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-07-28 00:28:53 (GMT) |
commit | cc8506ecbe22635f5be9322d633f7ca31a439bac (patch) | |
tree | a76f239fd8f33c9a55b6df2a61dbac2a735418d1 | |
parent | 6fb6f8cf589d46d7b30933a058198b8c5de64005 (diff) | |
download | cpython-cc8506ecbe22635f5be9322d633f7ca31a439bac.zip cpython-cc8506ecbe22635f5be9322d633f7ca31a439bac.tar.gz cpython-cc8506ecbe22635f5be9322d633f7ca31a439bac.tar.bz2 |
Update int division to quiet 2to3 warning.
-rw-r--r-- | Lib/lib-tk/test/test_ttk/test_widgets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/lib-tk/test/test_ttk/test_widgets.py b/Lib/lib-tk/test/test_ttk/test_widgets.py index 9d06a75..2fcb3fa 100644 --- a/Lib/lib-tk/test/test_ttk/test_widgets.py +++ b/Lib/lib-tk/test/test_ttk/test_widgets.py @@ -26,8 +26,8 @@ class WidgetTest(unittest.TestCase): def test_identify(self): self.widget.update_idletasks() self.assertEqual(self.widget.identify( - int(self.widget.winfo_width() / 2), - int(self.widget.winfo_height() / 2) + self.widget.winfo_width() // 2, + self.widget.winfo_height() // 2 ), "label") self.assertEqual(self.widget.identify(-1, -1), "") |