mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
simplify StartupImportTests (GH-13096)
_osx_support and copyreg are not imported from site on macOS for now.
This commit is contained in:
parent
98a1e06c47
commit
c4d92c8ada
1 changed files with 7 additions and 7 deletions
|
|
@ -526,15 +526,15 @@ def test_startup_imports(self):
|
|||
|
||||
# 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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue