[Python-checkins] r74318 - python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py

guilherme.polo python-checkins at python.org
Wed Aug 5 15:36:47 CEST 2009


Author: guilherme.polo
Date: Wed Aug  5 15:36:47 2009
New Revision: 74318

Log:
Being safe about the object returned.

Modified:
   python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py

Modified: python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py
==============================================================================
--- python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py	(original)
+++ python/branches/tk_and_idle_maintenance/Lib/lib-tk/test/test_tkinter/test_text.py	Wed Aug  5 15:36:47 2009
@@ -93,7 +93,7 @@
 
     def test_edit(self):
         self.text['undo'] = False
-        self.assertFalse(self.text['undo'])
+        self.assertFalse(self.text.getboolean(str(self.text['undo'])))
 
         self.text.insert('1.0', 'hi')
         self.text.edit_undo()


More information about the Python-checkins mailing list