add test for illegal imports
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 @@
 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():