]> granicus.if.org Git - python/commitdiff
- Issue #21223: Pass test_site/test_startup_imports when some of the extensions
authordoko@ubuntu.com <doko@ubuntu.com>
Tue, 15 Apr 2014 18:37:54 +0000 (20:37 +0200)
committerdoko@ubuntu.com <doko@ubuntu.com>
Tue, 15 Apr 2014 18:37:54 +0000 (20:37 +0200)
  are built as builtins.

Lib/test/test_site.py
Misc/NEWS

index b32aef1d5da95bf73ea6929b5ea762c0b360a58f..83252227ec2fe7ff6334c3e174d011433134c405 100644 (file)
@@ -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)
 
 
index 271898c82e9ca0bf0d911255f84de591040c8c5f..87553f0698ed13d4045e86ab6268be8454e3ac8c 100644 (file)
--- 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.