[Python-checkins] r85939 - python/branches/py3k/Lib/test/regrtest.py

benjamin.peterson python-checkins at python.org
Fri Oct 29 23:33:10 CEST 2010


Author: benjamin.peterson
Date: Fri Oct 29 23:33:10 2010
New Revision: 85939

Log:
set literals and unions are our friends

Modified:
   python/branches/py3k/Lib/test/regrtest.py

Modified: python/branches/py3k/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k/Lib/test/regrtest.py	(original)
+++ python/branches/py3k/Lib/test/regrtest.py	Fri Oct 29 23:33:10 2010
@@ -1440,11 +1440,10 @@
             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')


More information about the Python-checkins mailing list