summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-07 16:06:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-07 16:06:24 (GMT)
commit29a2f7c6b38e5a6ed891aa72af38974a1ff2d372 (patch)
tree3b38469eb11f3a882dc98517a08d9a54e0e7f9f1 /Lib/tkinter
parent96b6ff20d3811457fc6e063bce331e00625d03be (diff)
downloadcpython-29a2f7c6b38e5a6ed891aa72af38974a1ff2d372.zip
cpython-29a2f7c6b38e5a6ed891aa72af38974a1ff2d372.tar.gz
cpython-29a2f7c6b38e5a6ed891aa72af38974a1ff2d372.tar.bz2
Issue #25263: Trying to fix test_use on Windows.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r--Lib/tkinter/test/test_tkinter/test_widgets.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py
index 7171667..5a01a5a 100644
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -91,9 +91,10 @@ class ToplevelTest(AbstractToplevelTest, unittest.TestCase):
widget = self.create()
self.assertEqual(widget['use'], '')
parent = self.create(container=True)
- wid = parent.winfo_id()
- widget2 = self.create(use=wid)
- self.assertEqual(int(widget2['use']), wid)
+ wid = hex(parent.winfo_id())
+ with self.subTest(wid=wid):
+ widget2 = self.create(use=wid)
+ self.assertEqual(widget2['use'], wid)
@add_standard_options(StandardOptionsTests)