summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-25 15:35:24 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-25 15:35:24 (GMT)
commita1de9063309dc64194cc0d3d3ac6616d36434c96 (patch)
tree55cbd0c821f9651e40b6d30c630c6af13ace477b /Lib/tkinter
parentcc4290bf9166f8061e9c3e0bed55e19f0acd5c42 (diff)
downloadcpython-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.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)