Index: Lib/test/test_future.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_future.py,v retrieving revision 1.6 diff -w -u -r1.6 test_future.py --- Lib/test/test_future.py 30 Jul 2002 23:27:11 -0000 1.6 +++ Lib/test/test_future.py 11 Dec 2003 06:03:15 -0000 @@ -45,3 +45,13 @@ from test import badsyntax_future7 except SyntaxError, msg: check_error_location(str(msg)) + +try: + from test import badsyntax_future8 +except SyntaxError, msg: + check_error_location(str(msg)) + +try: + from test import badsyntax_future9 +except SyntaxError, msg: + check_error_location(str(msg)) Index: Lib/test/badsyntax_future8.py =================================================================== RCS file: Lib/test/badsyntax_future8.py diff -N Lib/test/badsyntax_future8.py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Lib/test/badsyntax_future8.py 11 Dec 2003 06:03:15 -0000 @@ -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) Index: Lib/test/badsyntax_future9.py =================================================================== RCS file: Lib/test/badsyntax_future9.py diff -N Lib/test/badsyntax_future9.py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ Lib/test/badsyntax_future9.py 11 Dec 2003 06:03:15 -0000 @@ -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) Index: Lib/test/output/test_future =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/output/test_future,v retrieving revision 1.4 diff -w -u -r1.4 test_future --- Lib/test/output/test_future 15 Jul 2003 21:03:13 -0000 1.4 +++ Lib/test/output/test_future 11 Dec 2003 06:03:15 -0000 @@ -6,3 +6,5 @@ SyntaxError badsyntax_future5 4 SyntaxError badsyntax_future6 3 SyntaxError badsyntax_future7 3 +SyntaxError badsyntax_future8 3 +SyntaxError badsyntax_future9 3