From a1de9063309dc64194cc0d3d3ac6616d36434c96 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 25 Dec 2013 17:35:24 +0200 Subject: test_debug in test_tkinter/test_text no longer fails when wantobjects is false. --- Lib/tkinter/test/test_tkinter/test_text.py | 5 +++-- 1 file 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 index 4c3fa04..db8ae6c 100644 --- a/Lib/tkinter/test/test_tkinter/test_text.py +++ b/Lib/tkinter/test/test_tkinter/test_text.py @@ -16,12 +16,13 @@ class TextTest(unittest.TestCase): 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) -- cgit v0.12