mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
add test for illegal imports
This commit is contained in:
parent
10f8ba4fc6
commit
ac25a38841
2 changed files with 4 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue