summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-10-16 03:45:45 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-10-16 03:45:45 (GMT)
commit230b20684f6d10044d604bc88065692393037948 (patch)
tree252d777b8743aa3884daf112549e4fdf4275d117 /Lib/test
parent294a9fcba67b95efc62c5461fcc6fe9a5a59c525 (diff)
downloadcpython-230b20684f6d10044d604bc88065692393037948.zip
cpython-230b20684f6d10044d604bc88065692393037948.tar.gz
cpython-230b20684f6d10044d604bc88065692393037948.tar.bz2
don't identify the toplevel namespace by name #9997
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_scope.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index 0e5a8e9..390e39f 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -705,6 +705,14 @@ class ScopeTests(unittest.TestCase):
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)