[Python-checkins] cpython (3.3): 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:26 CET 2013


http://hg.python.org/cpython/rev/07f4c2c8badf
changeset: 88189:07f4c2c8badf
branch: 3.3
parent: 88186:6781a03d90c1
user: Serhiy Storchaka <storchaka at gmail.com>
date: Wed Dec 25 17:35:24 2013 +0200
summary:
 test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
files:
 Lib/tkinter/test/test_tkinter/test_text.py | 5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Lib/tkinter/test/test_tkinter/test_text.py b/Lib/tkinter/test/test_tkinter/test_text.py
--- a/Lib/tkinter/test/test_tkinter/test_text.py
+++ b/Lib/tkinter/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 によって変換されたページ (->オリジナル) /