Skip to content

Commit c22bd58

Browse files
authored
bpo-28095: Re-enable temporarily disabled part of test_startup_imports on macOS (#2927)
The changes for bpo-29585 eliminate the extra imports on macOS that caused the original test failure. This reverts commit 8a2150a.
1 parent b166080 commit c22bd58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎Lib/test/test_site.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,7 @@ def test_startup_imports(self):
492492
'heapq', 'itertools', 'keyword', 'operator',
493493
'reprlib', 'types', 'weakref'
494494
}.difference(sys.builtin_module_names)
495-
# http://bugs.python.org/issue28095
496-
if sys.platform != 'darwin':
497-
self.assertFalse(modules.intersection(collection_mods), stderr)
495+
self.assertFalse(modules.intersection(collection_mods), stderr)
498496

499497
def test_startup_interactivehook(self):
500498
r = subprocess.Popen([sys.executable, '-c',

0 commit comments

Comments
 (0)