Mailing List Archive

CVS: python/dist/src/Lib/test test_generators.py,1.31,1.32 test_parser.py,1.10,1.11 test_profilehooks.py,1.7,1.8
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27182/python/Lib/test

Modified Files:
test_generators.py test_parser.py test_profilehooks.py
Log Message:
Remove some now-obsolete generator future statements.
I left the email pkg alone; I'm not sure how Barry would like to handle
that.


Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** test_generators.py 10 Mar 2002 07:59:13 -0000 1.31
--- test_generators.py 1 Apr 2002 00:28:59 -0000 1.32
***************
*** 1,4 ****
- from __future__ import generators
-
tutorial_tests = """
Let's try a simple generator:
--- 1,2 ----

Index: test_parser.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_parser.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** test_parser.py 20 Sep 2001 21:33:42 -0000 1.10
--- test_parser.py 1 Apr 2002 00:28:59 -0000 1.11
***************
*** 28,39 ****

def test_yield_statement(self):
! self.check_suite("from __future__ import generators\n"
! "def f(): yield 1")
! self.check_suite("from __future__ import generators\n"
! "def f(): return; yield 1")
! self.check_suite("from __future__ import generators\n"
! "def f(): yield 1; return")
! self.check_suite("from __future__ import generators\n"
! "def f():\n"
" for x in range(30):\n"
" yield x\n")
--- 28,35 ----

def test_yield_statement(self):
! self.check_suite("def f(): yield 1")
! self.check_suite("def f(): return; yield 1")
! self.check_suite("def f(): yield 1; return")
! self.check_suite("def f():\n"
" for x in range(30):\n"
" yield x\n")

Index: test_profilehooks.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_profilehooks.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_profilehooks.py 3 Mar 2002 15:11:17 -0000 1.7
--- test_profilehooks.py 1 Apr 2002 00:28:59 -0000 1.8
***************
*** 1,4 ****
- from __future__ import generators
-
from test_support import TestFailed

--- 1,2 ----