summaryrefslogtreecommitdiffstats
path: root/Lib/test
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
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')
-rw-r--r--Lib/test/test_generators.py2
-rw-r--r--Lib/test/test_parser.py12
-rw-r--r--Lib/test/test_profilehooks.py2
3 files changed, 4 insertions, 12 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index 155a83c..fb92ef4 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -1,5 +1,3 @@
-from __future__ import generators
-
tutorial_tests = """
Let's try a simple generator:
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")
diff --git a/Lib/test/test_profilehooks.py b/Lib/test/test_profilehooks.py
index fa38d30..8990e2c 100644
--- a/Lib/test/test_profilehooks.py
+++ b/Lib/test/test_profilehooks.py
@@ -1,5 +1,3 @@
-from __future__ import generators
-
from test_support import TestFailed
import pprint