don't identify the toplevel namespace by name #9997
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 @@
         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)