[Python-checkins] bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
serhiy-storchaka
webhook-mailer at python.org
Thu Dec 3 03:48:45 EST 2020
https://github.com/python/cpython/commit/f3c3ea91a76526edff928c95b9c6767e077b7448
commit: f3c3ea91a76526edff928c95b9c6767e077b7448
branch: master
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2020-12-03T10:48:26+02:00
summary:
bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612)
files:
M Lib/tkinter/test/test_ttk/test_style.py
diff --git a/Lib/tkinter/test/test_ttk/test_style.py b/Lib/tkinter/test/test_ttk/test_style.py
index 54e913311766f..38d70d7a89077 100644
--- a/Lib/tkinter/test/test_ttk/test_style.py
+++ b/Lib/tkinter/test/test_ttk/test_style.py
@@ -1,4 +1,5 @@
import unittest
+import sys
import tkinter
from tkinter import ttk
from test import support
@@ -136,6 +137,10 @@ def test_configure_custom_copy(self):
with self.subTest(theme=theme, name=name):
if support.verbose >= 2:
print('configure', theme, name, default)
+ if (theme in ('vista', 'xpnative')
+ and sys.getwindowsversion()[:2] == (6, 1)):
+ # Fails on the Windows 7 buildbot
+ continue
newname = f'C.{name}'
self.assertEqual(style.configure(newname), None)
style.configure(newname, **default)
@@ -158,6 +163,10 @@ def test_map_custom_copy(self):
with self.subTest(theme=theme, name=name):
if support.verbose >= 2:
print('map', theme, name, default)
+ if (theme in ('vista', 'xpnative')
+ and sys.getwindowsversion()[:2] == (6, 1)):
+ # Fails on the Windows 7 buildbot
+ continue
newname = f'C.{name}'
self.assertEqual(style.map(newname), {})
style.map(newname, **default)
More information about the Python-checkins
mailing list