Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f403f50

Browse files
committed
Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.
1 parent 4aa8f8e commit f403f50

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_site.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,9 @@ def test_startup_imports(self):
438438

439439
# http://bugs.python.org/issue19205
440440
re_mods = {'re', '_sre', 'sre_compile', 'sre_constants', 'sre_parse'}
441-
self.assertFalse(modules.intersection(re_mods), stderr)
441+
# _osx_support uses the re module in many placs
442+
if sys.platform != 'darwin':
443+
self.assertFalse(modules.intersection(re_mods), stderr)
442444
# http://bugs.python.org/issue9548
443445
self.assertNotIn('locale', modules, stderr)
444446
# http://bugs.python.org/issue19209

0 commit comments

Comments
 (0)