diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-10-25 21:28:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 21:28:02 (GMT) |
commit | 7c622be4f2e86c1999baba4f64671a5987d43d73 (patch) | |
tree | 7c3571a58040e3eca9b5f33a8b1fb27f659ce5ba /Lib/lib-tk/test/test_tkinter/test_widgets.py | |
parent | 88d5e2c938b014885044f1cfd016e62798f07fd2 (diff) | |
download | cpython-7c622be4f2e86c1999baba4f64671a5987d43d73.zip cpython-7c622be4f2e86c1999baba4f64671a5987d43d73.tar.gz cpython-7c622be4f2e86c1999baba4f64671a5987d43d73.tar.bz2 |
bpo-30855: Fix winfo_id related Tkinter test on Windows. (#4121)
Diffstat (limited to 'Lib/lib-tk/test/test_tkinter/test_widgets.py')
-rw-r--r-- | Lib/lib-tk/test/test_tkinter/test_widgets.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/test/test_tkinter/test_widgets.py b/Lib/lib-tk/test/test_tkinter/test_widgets.py index 1c4c4f3..1f60204 100644 --- a/Lib/lib-tk/test/test_tkinter/test_widgets.py +++ b/Lib/lib-tk/test/test_tkinter/test_widgets.py @@ -88,7 +88,8 @@ class ToplevelTest(AbstractToplevelTest, unittest.TestCase): widget = self.create() self.assertEqual(widget['use'], '') parent = self.create(container=True) - wid = hex(parent.winfo_id()) + # hex() adds the 'L' suffix for longs + wid = '%#x' % parent.winfo_id() widget2 = self.create(use=wid) self.assertEqual(widget2['use'], wid) |