diff options
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 ef56b889f5..5f8768ac03 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)  | 
