diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-30 01:25:56 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-01-30 01:25:56 (GMT) |
commit | ac25a38841b4b14176e52bddeb67fec9e0a81f84 (patch) | |
tree | 077e1269759a7548297e58ca0b31290da6980828 /Lib/test/test_grammar.py | |
parent | 10f8ba4fc6ba5fe3d8bac6625de4a157cdff5002 (diff) | |
download | cpython-ac25a38841b4b14176e52bddeb67fec9e0a81f84.zip cpython-ac25a38841b4b14176e52bddeb67fec9e0a81f84.tar.gz cpython-ac25a38841b4b14176e52bddeb67fec9e0a81f84.tar.bz2 |
add test for illegal imports
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 8030e69..022398d 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -367,6 +367,8 @@ import time, sys from time import time from sys import * from sys import path, argv +check_syntax("def f(): from sys import *") +check_syntax("def f(): global time; import ") print 'global_stmt' # 'global' NAME (',' NAME)* def f(): |