Test attribute access on non-global names

(I'm improving branch coverage.)
This commit is contained in:
Marius Gedminas 2015-06-04 12:55:16 +03:00
parent 9d8ff597a3
commit 0ef99a5de9

View file

@ -12,6 +12,7 @@ expressions. It works with dotted names too:
... def f2():
... import os.path
... os.path.exists('foo')
... x[0].append('')
... ''')
>>> imports, unused_names = find_imports_and_track_names('marmalade.py')