summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/tkinter/test/test_tkinter/test_text.py5
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
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)