]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.
authorChristian Heimes <christian@cheimes.de>
Sat, 12 Oct 2013 13:08:42 +0000 (15:08 +0200)
committerChristian Heimes <christian@cheimes.de>
Sat, 12 Oct 2013 13:08:42 +0000 (15:08 +0200)
Lib/test/test_site.py

index 26ae4d28ab883c360b0b8cbf5028c73891ad3bd2..20e18688de448842dc9b4c435dae53ae76c0c603 100644 (file)
@@ -438,7 +438,9 @@ class StartupImportTests(unittest.TestCase):
 
         # http://bugs.python.org/issue19205
         re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
-        self.assertFalse(modules.intersection(re_mods), stderr)
+        # _osx_support uses the re module in many placs
+        if sys.platform != 'darwin':
+            self.assertFalse(modules.intersection(re_mods), stderr)
         # http://bugs.python.org/issue9548
         self.assertNotIn('locale', modules, stderr)
         # http://bugs.python.org/issue19209