File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3002,7 +3002,7 @@ def debug(self, boolean=None):
30023002 """Turn on the internal consistency checks of the B-Tree inside the text
30033003 widget according to BOOLEAN."""
30043004 if boolean is None :
3005- return self .tk .call (self ._w , 'debug' )
3005+ return self .tk .getboolean ( self . tk . call (self ._w , 'debug' ) )
30063006 self .tk .call (self ._w , 'debug' , boolean )
30073007 def delete (self , index1 , index2 = None ):
30083008 """Delete the characters between INDEX1 and INDEX2 (not included)."""
Original file line number Diff line number Diff line change @@ -16,13 +16,12 @@ def tearDown(self):
1616
1717 def test_debug (self ):
1818 text = self .text
19- wantobjects = self .root .wantobjects ()
2019 olddebug = text .debug ()
2120 try :
2221 text .debug (0 )
23- self .assertEqual (text .debug (), 0 if wantobjects else '0' )
22+ self .assertEqual (text .debug (), 0 )
2423 text .debug (1 )
25- self .assertEqual (text .debug (), 1 if wantobjects else '1' )
24+ self .assertEqual (text .debug (), 1 )
2625 finally :
2726 text .debug (olddebug )
2827 self .assertEqual (text .debug (), olddebug )
You can’t perform that action at this time.
0 commit comments