From 458120dd40db6b4df55a4e96b650e16798ef06a0 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 3 May 2011 11:25:13 +0000 Subject: add hg and python --- sys/lib/python/test/test_future1.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sys/lib/python/test/test_future1.py (limited to 'sys/lib/python/test/test_future1.py') diff --git a/sys/lib/python/test/test_future1.py b/sys/lib/python/test/test_future1.py new file mode 100644 index 000000000..297c2e087 --- /dev/null +++ b/sys/lib/python/test/test_future1.py @@ -0,0 +1,11 @@ +"""This is a test""" + +# Import the name nested_scopes twice to trigger SF bug #407394 (regression). +from __future__ import nested_scopes, nested_scopes + +def f(x): + def g(y): + return x + y + return g + +result = f(2)(4) -- cgit v1.2.3