This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients doko, eric.snow
Date 2014-04-14.20:25:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397507113.83.0.846424139619.issue21223@psf.upfronthosting.co.za>
In-reply-to
Content
fix test_site/test_startup_imports when some of the extensions are built as builtins.

--- a/Lib/test/test_site.py	Mon Apr 14 12:24:37 2014 -0400
+++ b/Lib/test/test_site.py	Mon Apr 14 22:17:57 2014 +0200
@@ -459,7 +459,8 @@
         # http://bugs.python.org/issue19218>
         collection_mods = {'_collections', 'collections', 'functools',
                            'heapq', 'itertools', 'keyword', 'operator',
-                           'reprlib', 'types', 'weakref'}
+                           'reprlib', 'types', 'weakref'
+                          }.difference(sys.builtin_module_names)
         self.assertFalse(modules.intersection(collection_mods), stderr)

the test now passes indepedent of the status of _collections (builtin or extension).
History
Date User Action Args
2014-04-14 20:25:13dokosetrecipients: + doko, eric.snow
2014-04-14 20:25:13dokosetmessageid: <1397507113.83.0.846424139619.issue21223@psf.upfronthosting.co.za>
2014-04-14 20:25:13dokolinkissue21223 messages
2014-04-14 20:25:13dokocreate