diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 11:15:39 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-01-11 11:15:39 (GMT) |
commit | 07bc3726ec2a64c6cb26c203ead064f4f3a8f24d (patch) | |
tree | 79c11ce7923f53af0d18d33020f371b38eafa5a9 /Lib/tkinter/test | |
parent | f4c9664a242e597e7ac978bc17eeddd3d336addb (diff) | |
parent | 2f26c224d7cbdb14f79cfd6f8d4914f60bb37bc5 (diff) | |
download | cpython-07bc3726ec2a64c6cb26c203ead064f4f3a8f24d.zip cpython-07bc3726ec2a64c6cb26c203ead064f4f3a8f24d.tar.gz cpython-07bc3726ec2a64c6cb26c203ead064f4f3a8f24d.tar.bz2 |
tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.
Diffstat (limited to 'Lib/tkinter/test')
-rw-r--r-- | Lib/tkinter/test/test_tkinter/test_text.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/tkinter/test/test_tkinter/test_text.py b/Lib/tkinter/test/test_tkinter/test_text.py index db8ae6c..4c3fa04 100644 --- a/Lib/tkinter/test/test_tkinter/test_text.py +++ b/Lib/tkinter/test/test_tkinter/test_text.py @@ -16,13 +16,12 @@ 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 if wantobjects else '0') + self.assertEqual(text.debug(), 0) text.debug(1) - self.assertEqual(text.debug(), 1 if wantobjects else '1') + self.assertEqual(text.debug(), 1) finally: text.debug(olddebug) self.assertEqual(text.debug(), olddebug) |