File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Lib/tkinter/test/test_ttk Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 11import unittest
2+ import sys
23import tkinter
34from tkinter import ttk
45from test import support
@@ -136,6 +137,10 @@ def test_configure_custom_copy(self):
136137 with self .subTest (theme = theme , name = name ):
137138 if support .verbose >= 2 :
138139 print ('configure' , theme , name , default )
140+ if (theme in ('vista' , 'xpnative' )
141+ and sys .getwindowsversion ()[:2 ] == (6 , 1 )):
142+ # Fails on the Windows 7 buildbot
143+ continue
139144 newname = f'C.{ name } '
140145 self .assertEqual (style .configure (newname ), None )
141146 style .configure (newname , ** default )
@@ -158,6 +163,10 @@ def test_map_custom_copy(self):
158163 with self .subTest (theme = theme , name = name ):
159164 if support .verbose >= 2 :
160165 print ('map' , theme , name , default )
166+ if (theme in ('vista' , 'xpnative' )
167+ and sys .getwindowsversion ()[:2 ] == (6 , 1 )):
168+ # Fails on the Windows 7 buildbot
169+ continue
161170 newname = f'C.{ name } '
162171 self .assertEqual (style .map (newname ), {})
163172 style .map (newname , ** default )
You can’t perform that action at this time.
0 commit comments