summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
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