[Python-checkins] CVS: python/dist/src/Lib/test test_scope.py,1.8,1.9
Jeremy Hylton
jhylton@users.sourceforge.net
Tue, 27 Feb 2001 12:24:00 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv6717/Lib/test
Modified Files:
test_scope.py
Log Message:
add from __future__ import nested_scopes to strings passed to compile
Index: test_scope.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_scope.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** test_scope.py 2001/02/27 04:23:34 1.8
--- test_scope.py 2001/02/27 20:23:58 1.9
***************
*** 180,184 ****
print "11. unoptimized namespaces"
! check_syntax("""def unoptimized_clash1(strip):
def f(s):
from string import *
--- 180,185 ----
print "11. unoptimized namespaces"
! check_syntax("""from __future__ import nested_scopes
! def unoptimized_clash1(strip):
def f(s):
from string import *
***************
*** 187,191 ****
""")
! check_syntax("""def unoptimized_clash2():
from string import *
def f(s):
--- 188,193 ----
""")
! check_syntax("""from __future__ import nested_scopes
! def unoptimized_clash2():
from string import *
def f(s):
***************
*** 194,198 ****
""")
! check_syntax("""def unoptimized_clash2():
from string import *
def g():
--- 196,201 ----
""")
! check_syntax("""from __future__ import nested_scopes
! def unoptimized_clash2():
from string import *
def g():
***************
*** 203,207 ****
# XXX could allow this for exec with const argument, but what's the point
! check_syntax("""def error(y):
exec "a = 1"
def f(x):
--- 206,211 ----
# XXX could allow this for exec with const argument, but what's the point
! check_syntax("""from __future__ import nested_scopes
! def error(y):
exec "a = 1"
def f(x):
***************
*** 210,214 ****
""")
! check_syntax("""def f(x):
def g():
return x
--- 214,219 ----
""")
! check_syntax("""from __future__ import nested_scopes
! def f(x):
def g():
return x
***************
*** 216,220 ****
""")
! check_syntax("""def f():
def g():
from string import *
--- 221,226 ----
""")
! check_syntax("""from __future__ import nested_scopes
! def f():
def g():
from string import *