diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-12-13 22:43:34 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-12-13 22:43:34 (GMT) |
commit | 328f338196f79e68f867a35cda171f01abef4f8e (patch) | |
tree | 699a14ce44bfff841303de27abeaf7f99319d4e8 /Lib/test/badsyntax_future9.py | |
parent | 378f7b5dca7cfcf9a9d3a5ddd3aa4fdcd2a36b0e (diff) | |
download | cpython-328f338196f79e68f867a35cda171f01abef4f8e.zip cpython-328f338196f79e68f867a35cda171f01abef4f8e.tar.gz cpython-328f338196f79e68f867a35cda171f01abef4f8e.tar.bz2 |
SF #736962, port test_future to unittest, add a bit more coverage, by Walter Dörwald
Diffstat (limited to 'Lib/test/badsyntax_future9.py')
-rw-r--r-- | Lib/test/badsyntax_future9.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/badsyntax_future9.py b/Lib/test/badsyntax_future9.py new file mode 100644 index 0000000..cdce32a --- /dev/null +++ b/Lib/test/badsyntax_future9.py @@ -0,0 +1,10 @@ +"""This is a test""" + +from __future__ import nested_scopes, braces + +def f(x): + def g(y): + return x + y + return g + +print f(2)(4) |