[Python-checkins] cpython: Issue #25263: Trying to fix test_use on Windows.
serhiy.storchaka
python-checkins at python.org
Sat Nov 7 11:06:53 EST 2015
https://hg.python.org/cpython/rev/d70026504feb
changeset: 99004:d70026504feb
user: Serhiy Storchaka <storchaka at gmail.com>
date: Sat Nov 07 18:06:24 2015 +0200
summary:
Issue #25263: Trying to fix test_use on Windows.
files:
Lib/tkinter/test/test_tkinter/test_widgets.py | 7 ++++---
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
--- a/Lib/tkinter/test/test_tkinter/test_widgets.py
+++ b/Lib/tkinter/test/test_tkinter/test_widgets.py
@@ -91,9 +91,10 @@
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)
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list