summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2014-04-15 18:37:54 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2014-04-15 18:37:54 (GMT)
commit9574355ff3cffde2dc67ee60a61e468cec1d46f7 (patch)
treeffad45be64a59b01cc2ef0c6ffb3876d013a74ba /Lib/test/test_site.py
parent09cc169a03f865d7ff68e49be01ea9d3588c96de (diff)
downloadcpython-9574355ff3cffde2dc67ee60a61e468cec1d46f7.zip
cpython-9574355ff3cffde2dc67ee60a61e468cec1d46f7.tar.gz
cpython-9574355ff3cffde2dc67ee60a61e468cec1d46f7.tar.bz2
- Issue #21223: Pass test_site/test_startup_imports when some of the extensions
are built as builtins.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index b32aef1..8325222 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)