Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.

This commit is contained in:
Christian Heimes 2013-10-12 15:08:42 +02:00
parent 4aa8f8e225
commit f403f50378
1 changed files with 3 additions and 1 deletions

View File

@ -438,6 +438,8 @@ class StartupImportTests(unittest.TestCase):
# http://bugs.python.org/issue19205
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
# _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)