diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-25 15:35:24 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-12-25 15:35:24 (GMT) |
commit | a1de9063309dc64194cc0d3d3ac6616d36434c96 (patch) | |
tree | 55cbd0c821f9651e40b6d30c630c6af13ace477b /Lib/tkinter | |
parent | cc4290bf9166f8061e9c3e0bed55e19f0acd5c42 (diff) | |
download | cpython-a1de9063309dc64194cc0d3d3ac6616d36434c96.zip cpython-a1de9063309dc64194cc0d3d3ac6616d36434c96.tar.gz cpython-a1de9063309dc64194cc0d3d3ac6616d36434c96.tar.bz2 |
test_debug in test_tkinter/test_text no longer fails when wantobjects is false.
Diffstat (limited to 'Lib/tkinter')
-rw-r--r-- | 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 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) |