]> granicus.if.org Git - python/commitdiff
set literals and unions are our friends
authorBenjamin Peterson <benjamin@python.org>
Fri, 29 Oct 2010 21:33:10 +0000 (21:33 +0000)
committerBenjamin Peterson <benjamin@python.org>
Fri, 29 Oct 2010 21:33:10 +0000 (21:33 +0000)
Lib/test/regrtest.py

index c487d29ccd5e52a5a7ac303d97630dbeec5a6924..2d9cac22dcc249116d92b7d0b648d232059f3b30 100755 (executable)
@@ -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')