mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add test case to cover multiple future statements on separate lines of
a module.
This commit is contained in:
parent
8471a35feb
commit
18da1e1e7f
1 changed files with 11 additions and 0 deletions
11
Lib/test/test_future3.py
Normal file
11
Lib/test/test_future3.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from __future__ import nested_scopes
|
||||
from __future__ import division
|
||||
from __future__ import nested_scopes
|
||||
|
||||
def f(x):
|
||||
def g(y):
|
||||
return y // x
|
||||
return g
|
||||
|
||||
|
||||
print f(2)(5)
|
Loading…
Add table
Add a link
Reference in a new issue