@@ -676,7 +676,9 @@ def test_configure_tabs(self):
676676 else :
677677 self .checkParam (widget , 'tabs' , (10.2 , 20.7 , '1i' , '2i' ))
678678 self .checkParam (widget , 'tabs' , '10.2 20.7 1i 2i' ,
679- expected = ('10.2' , '20.7' , '1i' , '2i' ))
679+ expected = (10.2 , 20.7 , '1i' , '2i' )
680+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 )
681+ else ('10.2' , '20.7' , '1i' , '2i' ))
680682 self .checkParam (widget , 'tabs' , '2c left 4c 6c center' ,
681683 expected = ('2c' , 'left' , '4c' , '6c' , 'center' ))
682684 self .checkInvalidParam (widget , 'tabs' , 'spam' ,
@@ -1014,12 +1016,16 @@ def test_itemconfigure(self):
10141016 widget .itemconfigure ()
10151017 with self .assertRaisesRegex (TclError , 'bad listbox index "red"' ):
10161018 widget .itemconfigure ('red' )
1019+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 ):
1020+ prefix = ('background' , '' , '' , '' )
1021+ else :
1022+ prefix = ('background' , 'background' , 'Background' , '' )
10171023 self .assertEqual (widget .itemconfigure (0 , 'background' ),
1018- ('background' , 'background' , 'Background' , '' , 'red' ))
1024+ (* prefix , 'red' ))
10191025 self .assertEqual (widget .itemconfigure ('end' , 'background' ),
1020- ('background' , 'background' , 'Background' , '' , 'violet' ))
1026+ (* prefix , 'violet' ))
10211027 self .assertEqual (widget .itemconfigure ('@0,0' , 'background' ),
1022- ('background' , 'background' , 'Background' , '' , 'red' ))
1028+ (* prefix , 'red' ))
10231029
10241030 d = widget .itemconfigure (0 )
10251031 self .assertIsInstance (d , dict )
0 commit comments