[Python-checkins] cpython (2.7): test_debug in test_tkinter/test_text no longer fails when wantobjects is false.

serhiy.storchaka python-checkins at python.org
Wed Dec 25 16:36:25 CET 2013


http://hg.python.org/cpython/rev/50d8e0edfc3f
changeset: 88188:50d8e0edfc3f
branch: 2.7
parent: 88185:6fe3e855a276
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Dec 25 17:35:11 2013 +0200
summary:
 test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
files:
 Lib/lib-tk/test/test_tkinter/test_text.py | 5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Lib/lib-tk/test/test_tkinter/test_text.py b/Lib/lib-tk/test/test_tkinter/test_text.py
--- a/Lib/lib-tk/test/test_tkinter/test_text.py
+++ b/Lib/lib-tk/test/test_tkinter/test_text.py
@@ -16,12 +16,13 @@
 
 def test_debug(self):
 text = self.text
+ wantobjects = self.root.wantobjects()
 olddebug = text.debug()
 try:
 text.debug(0)
- self.assertEqual(text.debug(), 0)
+ self.assertEqual(text.debug(), 0 if wantobjects else '0')
 text.debug(1)
- self.assertEqual(text.debug(), 1)
+ self.assertEqual(text.debug(), 1 if wantobjects else '1')
 finally:
 text.debug(olddebug)
 self.assertEqual(text.debug(), olddebug)
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /