summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-12 13:08:42 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-12 13:08:42 (GMT)
commitf403f503781f878a25fd6129161d8c6d0ddde10a (patch)
tree23d8af0b9e1c7296c4837fb732f1f1d9b0b3f4a2 /Lib/test/test_site.py
parent4aa8f8e225afeec1726a68e596b16dc4ecf2225d (diff)
downloadcpython-f403f503781f878a25fd6129161d8c6d0ddde10a.zip
cpython-f403f503781f878a25fd6129161d8c6d0ddde10a.tar.gz
cpython-f403f503781f878a25fd6129161d8c6d0ddde10a.tar.bz2
Issue #19205: _osx_support uses the re module all over the place. Omit the test for nw.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 26ae4d2..20e1868 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -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