Commit 7c622be4 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-30855: Fix winfo_id related Tkinter test on Windows. (#4121)

parent 88d5e2c9
......@@ -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)
......
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