@@ -661,7 +661,9 @@ def test_configure_tabs(self):
661661        widget  =  self .create ()
662662        self .checkParam (widget , 'tabs' , (10.2 , 20.7 , '1i' , '2i' ))
663663        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' ))
665667        self .checkParam (widget , 'tabs' , '2c left 4c 6c center' ,
666668                        expected = ('2c' , 'left' , '4c' , '6c' , 'center' ))
667669        self .checkInvalidParam (widget , 'tabs' , 'spam' ,
@@ -994,12 +996,16 @@ def test_itemconfigure(self):
994996            widget .itemconfigure ()
995997        with  self .assertRaisesRegex (TclError , 'bad listbox index "red"' ):
996998            widget .itemconfigure ('red' )
999+         if  get_tk_patchlevel (self .root ) >=  (8 , 6 , 14 ):
1000+             prefix  =  ('background' , '' , '' , '' )
1001+         else :
1002+             prefix  =  ('background' , 'background' , 'Background' , '' )
9971003        self .assertEqual (widget .itemconfigure (0 , 'background' ),
998-                          ('background' ,  'background' ,  'Background' ,  '' , 'red' ))
1004+                          (* prefix , 'red' ))
9991005        self .assertEqual (widget .itemconfigure ('end' , 'background' ),
1000-                          ('background' ,  'background' ,  'Background' ,  '' , 'violet' ))
1006+                          (* prefix , 'violet' ))
10011007        self .assertEqual (widget .itemconfigure ('@0,0' , 'background' ),
1002-                          ('background' ,  'background' ,  'Background' ,  '' , 'red' ))
1008+                          (* prefix , 'red' ))
10031009
10041010        d  =  widget .itemconfigure (0 )
10051011        self .assertIsInstance (d , dict )
0 commit comments