Issue21223
Created on 2014-04-14 20:25 by doko, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg216200 - (view) | Author: Matthias Klose (doko) * | Date: 2014-04-14 20:25 | |
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).
|
|||
| msg216224 - (view) | Author: Eric Snow (eric.snow) * | Date: 2014-04-14 21:27 | |
Looks good to me. This should not impact the standard build, but is useful for alternate builds. Does something similar need to happen to also exclude frozen modules? |
|||
| msg216359 - (view) | Author: Roundup Robot (python-dev) | Date: 2014-04-15 18:38 | |
New changeset ebb9595af548 by doko in branch '3.4': - Issue #21223: Pass test_site/test_startup_imports when some of the extensions http://hg.python.org/cpython/rev/ebb9595af548 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:01 | admin | set | github: 65422 |
| 2014-04-15 18:50:23 | doko | set | status: open -> closed resolution: fixed |
| 2014-04-15 18:38:40 | python-dev | set | nosy:
+ python-dev messages: + msg216359 |
| 2014-04-14 21:27:48 | eric.snow | set | nosy:
+ brett.cannon, ncoghlan messages: + msg216224 |
| 2014-04-14 20:25:13 | doko | create | |