From 552502a2e98fd633626af8eb87afd48bb9f0d1bb Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 16 May 2014 14:28:23 +0200 Subject: [PATCH] list comprehension static analysis test --- test/static_analysis/attribute_error.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/static_analysis/attribute_error.py b/test/static_analysis/attribute_error.py index be7ce37e..776b54b0 100644 --- a/test/static_analysis/attribute_error.py +++ b/test/static_analysis/attribute_error.py @@ -67,3 +67,11 @@ def return_one(something): #! attribute-error return_one(''.undefined_attribute) + +#! name-error +[r for r in undefined] + +#! name-error +[undefined for r in [1, 2]] + +[r for r in [1, 2]]