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 1
1
import unittest
2
+ import sys
2
3
import tkinter
3
4
from tkinter import ttk
4
5
from test import support
@@ -136,6 +137,10 @@ def test_configure_custom_copy(self):
136
137
with self .subTest (theme = theme , name = name ):
137
138
if support .verbose >= 2 :
138
139
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
139
144
newname = f'C.{ name } '
140
145
self .assertEqual (style .configure (newname ), None )
141
146
style .configure (newname , ** default )
@@ -158,6 +163,10 @@ def test_map_custom_copy(self):
158
163
with self .subTest (theme = theme , name = name ):
159
164
if support .verbose >= 2 :
160
165
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
161
170
newname = f'C.{ name } '
162
171
self .assertEqual (style .map (newname ), {})
163
172
style .map (newname , ** default )
You can’t perform that action at this time.
0 commit comments