We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96b6ff2 commit 29a2f7cCopy full SHA for 29a2f7c
1 file changed
Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -91,9 +91,10 @@ def test_use(self):
91
widget = self.create()
92
self.assertEqual(widget['use'], '')
93
parent = self.create(container=True)
94
- wid = parent.winfo_id()
95
- widget2 = self.create(use=wid)
96
- self.assertEqual(int(widget2['use']), wid)
+ wid = hex(parent.winfo_id())
+ with self.subTest(wid=wid):
+ widget2 = self.create(use=wid)
97
+ self.assertEqual(widget2['use'], wid)
98
99
100
@add_standard_options(StandardOptionsTests)
0 commit comments