@@ -650,7 +650,9 @@ def test_configure_tabs(self):
650650 else :
651651 self .checkParam (widget , 'tabs' , (10.2 , 20.7 , '1i' , '2i' ))
652652 self .checkParam (widget , 'tabs' , '10.2 20.7 1i 2i' ,
653- expected = ('10.2' , '20.7' , '1i' , '2i' ))
653+ expected = (10.2 , 20.7 , '1i' , '2i' )
654+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 )
655+ else ('10.2' , '20.7' , '1i' , '2i' ))
654656 self .checkParam (widget , 'tabs' , '2c left 4c 6c center' ,
655657 expected = ('2c' , 'left' , '4c' , '6c' , 'center' ))
656658 self .checkInvalidParam (widget , 'tabs' , 'spam' ,
@@ -830,12 +832,16 @@ def test_itemconfigure(self):
830832 widget .itemconfigure ()
831833 with self .assertRaisesRegex (TclError , 'bad listbox index "red"' ):
832834 widget .itemconfigure ('red' )
835+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 ):
836+ prefix = ('background' , '' , '' , '' )
837+ else :
838+ prefix = ('background' , 'background' , 'Background' , '' )
833839 self .assertEqual (widget .itemconfigure (0 , 'background' ),
834- ('background' , 'background' , 'Background' , '' , 'red' ))
840+ (* prefix , 'red' ))
835841 self .assertEqual (widget .itemconfigure ('end' , 'background' ),
836- ('background' , 'background' , 'Background' , '' , 'violet' ))
842+ (* prefix , 'violet' ))
837843 self .assertEqual (widget .itemconfigure ('@0,0' , 'background' ),
838- ('background' , 'background' , 'Background' , '' , 'red' ))
844+ (* prefix , 'red' ))
839845
840846 d = widget .itemconfigure (0 )
841847 self .assertIsInstance (d , dict )
0 commit comments