commit | 2922ea8235c183cb35c3415b5888967af55812fa | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Feb 28 23:49:19 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Feb 28 23:49:19 2001 +0000 |
tree | 42e315ecc3ff6956756ccbaff13a9b0dfebabe47 | |
parent | 3dd5ad3b4f1e7be153d272a2ac3848028a6c306b [diff] [blame] |
Add test case for global stmt at module level. Fix test_grammar so that it ignores warning about global stmt at module level in exec.
diff --git a/Lib/test/test_global.py b/Lib/test/test_global.py index c60d0c7..b41b7d4 100644 --- a/Lib/test/test_global.py +++ b/Lib/test/test_global.py
@@ -37,3 +37,9 @@ global x """ compile_and_catch_warning(prog_text_3) + +prog_text_4 = """ +global x +x = 2 +""" +compile_and_catch_warning(prog_text_4)