mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
This commit is contained in:
parent
378f7b5dca
commit
328f338196
11 changed files with 101 additions and 47 deletions
10
Lib/test/badsyntax_future8.py
Normal file
10
Lib/test/badsyntax_future8.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
"""This is a test"""
|
||||
|
||||
from __future__ import *
|
||||
|
||||
def f(x):
|
||||
def g(y):
|
||||
return x + y
|
||||
return g
|
||||
|
||||
print f(2)(4)
|
Loading…
Add table
Add a link
Reference in a new issue