[Python-checkins] bpo-28095: Re-enable temporarily disabled part of test_startup_imports on macOS (#2927)

Ned Deily webhook-mailer at python.org
Fri Jul 28 03:02:13 EDT 2017


https://github.com/python/cpython/commit/c22bd58d933efaec26d1f77f263b2845473b7e15
commit: c22bd58d933efaec26d1f77f263b2845473b7e15
branch: master
author: Ned Deily <nad at python.org>
committer: GitHub <noreply at github.com>
date: 2017-07-28T03:02:10-04:00
summary:

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 8a2150aae6db4d664c96a038ef6abacd4bcbcdc9.

files:
M Lib/test/test_site.py

diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index bf7be4ec1c6..4975a770220 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -492,9 +492,7 @@ def test_startup_imports(self):
                            'heapq', 'itertools', 'keyword', 'operator',
                            'reprlib', 'types', 'weakref'
                           }.difference(sys.builtin_module_names)
-        # http://bugs.python.org/issue28095
-        if sys.platform != 'darwin':
-            self.assertFalse(modules.intersection(collection_mods), stderr)
+        self.assertFalse(modules.intersection(collection_mods), stderr)
 
     def test_startup_interactivehook(self):
         r = subprocess.Popen([sys.executable, '-c',



More information about the Python-checkins mailing list