From: doko@ubuntu.com Date: Tue, 15 Apr 2014 18:37:54 +0000 (+0200) Subject: - Issue #21223: Pass test_site/test_startup_imports when some of the extensions X-Git-Tag: v3.4.1rc1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9574355ff3cffde2dc67ee60a61e468cec1d46f7;p=python - Issue #21223: Pass test_site/test_startup_imports when some of the extensions are built as builtins. --- diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index b32aef1d5d..83252227ec 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -459,7 +459,8 @@ class StartupImportTests(unittest.TestCase): # 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) diff --git a/Misc/NEWS b/Misc/NEWS index 271898c82e..87553f0698 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -190,6 +190,9 @@ Documentation Tests ----- +- Issue #21223: Pass test_site/test_startup_imports when some of the extensions + are built as builtins. + - Issue #20635: Added tests for Tk geometry managers. - Add test case for freeze.