[Python-checkins] r55652 - python/branches/bcannon-objcap/tests/fail/protect_hidden.py
brett.cannon
python-checkins at python.org
Tue May 29 21:17:44 CEST 2007
Author: brett.cannon
Date: Tue May 29 21:17:43 2007
New Revision: 55652
Added:
python/branches/bcannon-objcap/tests/fail/protect_hidden.py (contents, props changed)
Log:
Make sure that '.hidden' cannot be imported.
Added: python/branches/bcannon-objcap/tests/fail/protect_hidden.py
==============================================================================
--- (empty file)
+++ python/branches/bcannon-objcap/tests/fail/protect_hidden.py Tue May 29 21:17:43 2007
@@ -0,0 +1,7 @@
+from __future__ import absolute_import
+try:
+ __import__('.hidden', level=0)
+except ImportError:
+ pass
+else:
+ raise Exception
More information about the Python-checkins
mailing list