[Python-checkins] r55660 - in python/branches/bcannon-objcap: BRANCH_NOTES tests/fail/delegate_protection.py
brett.cannon
python-checkins at python.org
Wed May 30 00:15:34 CEST 2007
Author: brett.cannon
Date: Wed May 30 00:15:33 2007
New Revision: 55660
Added:
python/branches/bcannon-objcap/tests/fail/delegate_protection.py (contents, props changed)
Modified:
python/branches/bcannon-objcap/BRANCH_NOTES
Log:
Make sure the import delegate does not expose anything.
Modified: python/branches/bcannon-objcap/BRANCH_NOTES
==============================================================================
--- python/branches/bcannon-objcap/BRANCH_NOTES (original)
+++ python/branches/bcannon-objcap/BRANCH_NOTES Wed May 30 00:15:33 2007
@@ -34,7 +34,6 @@
=====
* Write tests.
- Import
- + Delegate protects importlib.
+ Whitelisting works.
* Name fall-through to alternate implementation.
Added: python/branches/bcannon-objcap/tests/fail/delegate_protection.py
==============================================================================
--- (empty file)
+++ python/branches/bcannon-objcap/tests/fail/delegate_protection.py Wed May 30 00:15:33 2007
@@ -0,0 +1,4 @@
+"""The import delegate should not expose anything critical."""
+if [x for x in dir(__import__)
+ if not x.startswith('__') and not x.endswith('__')]:
+ raise Exception
More information about the Python-checkins
mailing list