Commit f4aa0d53 authored by Craig Citro's avatar Craig Citro

Forgot to run tests after last patch. (Oops.)

parent fa08b5db
......@@ -1193,6 +1193,7 @@ class FuncDefNode(StatNode, BlockNode):
src = lenv.control_flow.get_state((entry.name, 'source'))
if entry.in_closure and src == 'arg':
code.put_var_incref(entry)
code.put_var_giveref(entry)
elif not entry.in_closure and src != 'arg':
code.put_var_decref(entry)
......
......@@ -5,7 +5,7 @@ __doc__ = u"""
>>> f = add_n(1000000)
>>> f(1000000), f(-1000000)
2000000, 0
(2000000, 0)
>>> a(5)()
8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment