@@ -660,7 +660,9 @@ def test_configure_tabs(self):
660660 widget = self .create ()
661661 self .checkParam (widget , 'tabs' , (10.2 , 20.7 , '1i' , '2i' ))
662662 self .checkParam (widget , 'tabs' , '10.2 20.7 1i 2i' ,
663- expected = ('10.2' , '20.7' , '1i' , '2i' ))
663+ expected = (10.2 , 20.7 , '1i' , '2i' )
664+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 )
665+ else ('10.2' , '20.7' , '1i' , '2i' ))
664666 self .checkParam (widget , 'tabs' , '2c left 4c 6c center' ,
665667 expected = ('2c' , 'left' , '4c' , '6c' , 'center' ))
666668 self .checkInvalidParam (widget , 'tabs' , 'spam' ,
@@ -999,12 +1001,16 @@ def test_itemconfigure(self):
9991001 widget .itemconfigure ()
10001002 with self .assertRaisesRegex (TclError , 'bad listbox index "red"' ):
10011003 widget .itemconfigure ('red' )
1004+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 ):
1005+ prefix = ('background' , '' , '' , '' )
1006+ else :
1007+ prefix = ('background' , 'background' , 'Background' , '' )
10021008 self .assertEqual (widget .itemconfigure (0 , 'background' ),
1003- ('background' , 'background' , 'Background' , '' , 'red' ))
1009+ (* prefix , 'red' ))
10041010 self .assertEqual (widget .itemconfigure ('end' , 'background' ),
1005- ('background' , 'background' , 'Background' , '' , 'violet' ))
1011+ (* prefix , 'violet' ))
10061012 self .assertEqual (widget .itemconfigure ('@0,0' , 'background' ),
1007- ('background' , 'background' , 'Background' , '' , 'red' ))
1013+ (* prefix , 'red' ))
10081014
10091015 d = widget .itemconfigure (0 )
10101016 self .assertIsInstance (d , dict )
0 commit comments