[Python-checkins] CVS: python/dist/src/Lib/test test_generators.py,1.18,1.19 test_scope.py,1.16,1.17

Tim Peters tim_one@users.sourceforge.net
Thu, 12 Jul 2001 15:36:04 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv20069/python/dist/src/Lib/test

Modified Files:
	test_generators.py test_scope.py 
Log Message:
Remove now-unnecessary "from __future__  import nested_scopes" stmts.


Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** test_generators.py	2001/07/12 13:26:41	1.18
--- test_generators.py	2001/07/12 22:36:02	1.19
***************
*** 1,4 ****
- from __future__ import nested_scopes
- 
  tutorial_tests = """
  Let's try a simple generator:
--- 1,2 ----

Index: test_scope.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_scope.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** test_scope.py	2001/05/08 04:08:16	1.16
--- test_scope.py	2001/07/12 22:36:02	1.17
***************
*** 1,4 ****
- from __future__ import nested_scopes
- 
  from test.test_support import verify, TestFailed, check_syntax
  
--- 1,2 ----
***************
*** 180,184 ****
  print "11. unoptimized namespaces"
  
! check_syntax("""from __future__ import nested_scopes
  def unoptimized_clash1(strip):
      def f(s):
--- 178,182 ----
  print "11. unoptimized namespaces"
  
! check_syntax("""\
  def unoptimized_clash1(strip):
      def f(s):
***************
*** 188,192 ****
  """)
  
! check_syntax("""from __future__ import nested_scopes
  def unoptimized_clash2():
      from string import *
--- 186,190 ----
  """)
  
! check_syntax("""\
  def unoptimized_clash2():
      from string import *
***************
*** 196,200 ****
  """)
  
! check_syntax("""from __future__ import nested_scopes
  def unoptimized_clash2():
      from string import *
--- 194,198 ----
  """)
  
! check_syntax("""\
  def unoptimized_clash2():
      from string import *
***************
*** 206,210 ****
  
  # 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"
--- 204,208 ----
  
  # XXX could allow this for exec with const argument, but what's the point
! check_syntax("""\
  def error(y):
      exec "a = 1"
***************
*** 214,218 ****
  """)
  
! check_syntax("""from __future__ import nested_scopes
  def f(x):
      def g():
--- 212,216 ----
  """)
  
! check_syntax("""\
  def f(x):
      def g():
***************
*** 221,225 ****
  """)
  
! check_syntax("""from __future__ import nested_scopes
  def f():
      def g():
--- 219,223 ----
  """)
  
! check_syntax("""\
  def f():
      def g():