[Python-checkins] cpython: Issue #19205: _osx_support uses the re module all over the place. Omit the test

christian.heimes python-checkins at python.org
Sat Oct 12 15:09:00 CEST 2013


http://hg.python.org/cpython/rev/9f6ef09f6492
changeset:   86224:9f6ef09f6492
user:        Christian Heimes <christian at cheimes.de>
date:        Sat Oct 12 15:08:42 2013 +0200
summary:
  Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.

files:
  Lib/test/test_site.py |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -438,7 +438,9 @@
 
         # 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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list