From 5b7843747c11e2adc5f79dfc344fad8ae34bd112 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 28 Mar 2014 02:01:57 +0100 Subject: [PATCH] test for recurring use of variable name with gotos, #315 --- test/completion/goto.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/completion/goto.py b/test/completion/goto.py index 942cee7c..663c15d7 100644 --- a/test/completion/goto.py +++ b/test/completion/goto.py @@ -91,6 +91,11 @@ ClassVar.x = '' #! 12 ['x = 3'] ClassVar().x = '' +# Recurring use of the same var name, github #315 +def f(t=None): + #! 9 ['t=None'] + t = t or 1 + # ----------------- # imports # -----------------