summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-05-05 09:06:30 (GMT)
committerGitHub <noreply@github.com>2019-05-05 09:06:30 (GMT)
commitc4d92c8ada7ecfc479ebb1dd4a819c9202155970 (patch)
tree698703b90489ab5b6e5f13809e668ec0b5543eb2 /Lib
parent98a1e06c47f655c7601b130cf8d549de9f08369e (diff)
downloadcpython-c4d92c8ada7ecfc479ebb1dd4a819c9202155970.zip
cpython-c4d92c8ada7ecfc479ebb1dd4a819c9202155970.tar.gz
cpython-c4d92c8ada7ecfc479ebb1dd4a819c9202155970.tar.bz2
simplify StartupImportTests (GH-13096)
_osx_support and copyreg are not imported from site on macOS for now.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_site.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 8643da0..41c4229 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -526,15 +526,15 @@ 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)
+ self.assertFalse(modules.intersection(re_mods), stderr)
+
# http://bugs.python.org/issue9548
self.assertNotIn('locale', modules, stderr)
- if sys.platform != 'darwin':
- # http://bugs.python.org/issue19209
- self.assertNotIn('copyreg', modules, stderr)
- # http://bugs.python.org/issue19218>
+
+ # http://bugs.python.org/issue19209
+ self.assertNotIn('copyreg', modules, stderr)
+
+ # http://bugs.python.org/issue19218
collection_mods = {'_collections', 'collections', 'functools',
'heapq', 'itertools', 'keyword', 'operator',
'reprlib', 'types', 'weakref'