diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-16 03:49:22 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-16 03:49:22 (GMT) |
commit | e9633491ca3e48632b4b41fd7f85c72ddab5ceaa (patch) | |
tree | a5d282caac7441e8a050b686a79d8ee95032e3a3 /Lib | |
parent | c404afdf8b4ffbcefd28216eedd3d478cb2412fe (diff) | |
download | cpython-e9633491ca3e48632b4b41fd7f85c72ddab5ceaa.zip cpython-e9633491ca3e48632b4b41fd7f85c72ddab5ceaa.tar.gz cpython-e9633491ca3e48632b4b41fd7f85c72ddab5ceaa.tar.bz2 |
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
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_scope.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py index ef56b88..5f8768a 100644 --- a/Lib/test/test_scope.py +++ b/Lib/test/test_scope.py @@ -693,6 +693,14 @@ result2 = h() h = g() self.assertEqual(h(), 3) + def testTopIsNotSignificant(self): + # See #9997. + def top(a): + pass + def b(): + global a + + def test_main(): run_unittest(ScopeTests) |