Commit 0356ff04 authored by Serhiy Storchaka's avatar Serhiy Storchaka

test_debug in test_tkinter/test_text no longer fails when wantobjects is false.

parent 5542b15d
No related merge requests found
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment