@@ -660,7 +660,9 @@ def test_configure_tabs(self):
660
660
widget = self .create ()
661
661
self .checkParam (widget , 'tabs' , (10.2 , 20.7 , '1i' , '2i' ))
662
662
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' ))
664
666
self .checkParam (widget , 'tabs' , '2c left 4c 6c center' ,
665
667
expected = ('2c' , 'left' , '4c' , '6c' , 'center' ))
666
668
self .checkInvalidParam (widget , 'tabs' , 'spam' ,
@@ -999,12 +1001,16 @@ def test_itemconfigure(self):
999
1001
widget .itemconfigure ()
1000
1002
with self .assertRaisesRegex (TclError , 'bad listbox index "red"' ):
1001
1003
widget .itemconfigure ('red' )
1004
+ if get_tk_patchlevel (self .root ) >= (8 , 6 , 14 ):
1005
+ prefix = ('background' , '' , '' , '' )
1006
+ else :
1007
+ prefix = ('background' , 'background' , 'Background' , '' )
1002
1008
self .assertEqual (widget .itemconfigure (0 , 'background' ),
1003
- ('background' , 'background' , 'Background' , '' , 'red' ))
1009
+ (* prefix , 'red' ))
1004
1010
self .assertEqual (widget .itemconfigure ('end' , 'background' ),
1005
- ('background' , 'background' , 'Background' , '' , 'violet' ))
1011
+ (* prefix , 'violet' ))
1006
1012
self .assertEqual (widget .itemconfigure ('@0,0' , 'background' ),
1007
- ('background' , 'background' , 'Background' , '' , 'red' ))
1013
+ (* prefix , 'red' ))
1008
1014
1009
1015
d = widget .itemconfigure (0 )
1010
1016
self .assertIsInstance (d , dict )
0 commit comments