Skip to content

Commit 12d2306

Browse files
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
(cherry picked from commit f3c3ea9) Co-authored-by: Serhiy Storchaka <[email protected]>
1 parent d9d63f1 commit 12d2306

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Lib/tkinter/test/test_ttk/test_style.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import unittest
2+
import sys
23
import tkinter
34
from tkinter import ttk
45
from 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)

0 commit comments

Comments
 (0)