From c48146093e84f99c82802d305f89e3496ee8a4ee Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 9 Jun 2014 12:53:17 +0200 Subject: [PATCH] test: list comprehension name resolve should not include its own definitions --- test/completion/basic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/completion/basic.py b/test/completion/basic.py index c4de6029..6af20c93 100644 --- a/test/completion/basic.py +++ b/test/completion/basic.py @@ -131,6 +131,12 @@ a = [a if 1.0 else '' for a in [1] if [1.0]] #? int() str() a[0] +# name resolve should be correct +left, right = 'a', 'b' +left, right = [x for x in (left, right)] +#? str() +left + # with a dict literal #? str() [a for a in {1:'x'}][0]