We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37046d commit 9adb811Copy full SHA for 9adb811
Lib/test/test_future_stmt/test_future.py
@@ -205,11 +205,16 @@ def test_syntactical_future_repl(self):
205
206
def test_future_dotted_import(self):
207
with self.assertRaises(ImportError):
208
- from .__future__ import annotations
+ exec("from .__future__ import spam")
209
210
- with self.assertRaises(ImportError):
+ code = dedent(
211
+ """
212
from __future__ import print_function
- from ...__future__ import annotations
213
+ from ...__future__ import ham
214
215
+ )
216
+ with self.assertRaises(ImportError):
217
+ exec(code)
218
219
code = """
220
from .__future__ import nested_scopes
0 commit comments