mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Merged revisions 85562 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85562 | benjamin.peterson | 2010-10-15 22:45:45 -0500 (Fri, 15 Oct 2010) | 1 line don't identify the toplevel namespace by name #9997 ........
This commit is contained in:
parent
7497e91a20
commit
f76942d6bf
3 changed files with 11 additions and 1 deletions
|
@ -647,6 +647,13 @@ result2 = h()
|
|||
self.assertEqual(2, global_ns["result2"])
|
||||
self.assertEqual(9, global_ns["result9"])
|
||||
|
||||
def testTopIsNotSignificant(self):
|
||||
# See #9997.
|
||||
def top(a):
|
||||
pass
|
||||
def b():
|
||||
global a
|
||||
|
||||
|
||||
def test_main():
|
||||
with check_warnings(("import \* only allowed at module level",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue