From: Benjamin Peterson Date: Fri, 29 Oct 2010 21:33:10 +0000 (+0000) Subject: set literals and unions are our friends X-Git-Tag: v3.2a4~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54ad0beae0ff5b4b400fceaa788115c0cff1243e;p=python set literals and unions are our friends --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index c487d29ccd..2d9cac22dc 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -1440,11 +1440,10 @@ class _ExpectedSkips: if sys.platform != "win32": # test_sqlite is only reliable on Windows where the library # is distributed with Python - WIN_ONLY = ["test_unicode_file", "test_winreg", + WIN_ONLY = {"test_unicode_file", "test_winreg", "test_winsound", "test_startfile", - "test_sqlite"] - for skip in WIN_ONLY: - self.expected.add(skip) + "test_sqlite"} + self.expected |= WIN_ONLY if sys.platform != 'sunos5': self.expected.add('test_nis')