diff options
Diffstat (limited to 'Lib/test/test_scope.py')
-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 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) |