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]]