summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-12-25 15:36:20 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-12-25 15:36:20 (GMT)
commitb5d55184e0fd05c9d0414ffbcfe5759a8f87d9c3 (patch)
treedc0a2e09dc693636f5773b3e76f43e0cde30804d /Lib/tkinter
parentcb131948fedced32559ce420cd80c652b28c2731 (diff)
parenta1de9063309dc64194cc0d3d3ac6616d36434c96 (diff)
downloadcpython-b5d55184e0fd05c9d0414ffbcfe5759a8f87d9c3.zip
cpython-b5d55184e0fd05c9d0414ffbcfe5759a8f87d9c3.tar.gz
cpython-b5d55184e0fd05c9d0414ffbcfe5759a8f87d9c3.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)