summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_parser.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-01 00:28:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2002-04-01 00:28:59 (GMT)
commit496563a5146e2650dcf6f3595c58ff24f39a9afb (patch)
tree1afd27b48db59487d02d59abd52c7387dacaed28 /Lib/test/test_parser.py
parent62f5a9d6c2e99b688e388d33c226e41174640082 (diff)
downloadcpython-496563a5146e2650dcf6f3595c58ff24f39a9afb.zip
cpython-496563a5146e2650dcf6f3595c58ff24f39a9afb.tar.gz
cpython-496563a5146e2650dcf6f3595c58ff24f39a9afb.tar.bz2
Remove some now-obsolete generator future statements.
I left the email pkg alone; I'm not sure how Barry would like to handle that.
Diffstat (limited to 'Lib/test/test_parser.py')
-rw-r--r--Lib/test/test_parser.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index 966f3e9..5df1e46 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -27,14 +27,10 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
self.roundtrip(parser.suite, s)
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"
+ 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")