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