File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2921,7 +2921,7 @@ def debug(self, boolean=None):
2921
2921
"""Turn on the internal consistency checks of the B-Tree inside the text
2922
2922
widget according to BOOLEAN."""
2923
2923
if boolean is None :
2924
- return self .tk .call (self ._w , 'debug' )
2924
+ return self .tk .getboolean ( self . tk . call (self ._w , 'debug' ) )
2925
2925
self .tk .call (self ._w , 'debug' , boolean )
2926
2926
def delete (self , index1 , index2 = None ):
2927
2927
"""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):
16
16
17
17
def test_debug (self ):
18
18
text = self .text
19
- wantobjects = self .root .wantobjects ()
20
19
olddebug = text .debug ()
21
20
try :
22
21
text .debug (0 )
23
- self .assertEqual (text .debug (), 0 if wantobjects else '0' )
22
+ self .assertEqual (text .debug (), 0 )
24
23
text .debug (1 )
25
- self .assertEqual (text .debug (), 1 if wantobjects else '1' )
24
+ self .assertEqual (text .debug (), 1 )
26
25
finally :
27
26
text .debug (olddebug )
28
27
self .assertEqual (text .debug (), olddebug )
You can’t perform that action at this time.
0 commit comments