From 99340dd2a10ef8fdeabeb10f727851d693e29641 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 13 May 2014 16:17:06 +0200 Subject: [PATCH] few NameError tests --- test/static_analysis/attribute_error.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/static_analysis/attribute_error.py b/test/static_analysis/attribute_error.py index 5183bac7..d010c7e6 100644 --- a/test/static_analysis/attribute_error.py +++ b/test/static_analysis/attribute_error.py @@ -23,7 +23,7 @@ class Cls(): #! attribute-error obj.arbitrary_lookup - #! attribute-error + #! name-error class_attr = a Cls().defined_lookup('') @@ -39,3 +39,7 @@ c.instance_attr_error c.something = None + +#! name-error +something = a +something