commit | d1f5a59edb56b64336f07fc88cff6cbebed12dd6 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Jun 13 13:06:21 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Jun 13 13:06:21 2009 +0000 |
tree | 4486a70b3c41a35c4adb467c6d9a526bbe887c59 | |
parent | 565e1b6bb724af71f439ec914b34f74e5163fe3d [diff] |
allow importing from a module named None if it has an 'as' clause
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py index 4e15d8c..6ffd64a 100644 --- a/Lib/test/test_compile.py +++ b/Lib/test/test_compile.py
@@ -281,6 +281,8 @@ self.assertRaises(SyntaxError, compile, stmt, 'tmp', 'exec') # This is ok. compile("from None import x", "tmp", "exec") + compile("from x import None as y", "tmp", "exec") + compile("import None as x", "tmp", "exec") def test_import(self): succeed = [