1.1 --- a/tests/importer.py Mon Jul 21 00:42:54 2008 +0200
1.2 +++ b/tests/importer.py Sat Jul 26 01:16:02 2008 +0200
1.3 @@ -2,13 +2,11 @@
1.4
1.5 import imported
1.6
1.7 -imported.attr = 456 # detected with warning
1.8 +imported.attr # cannot assign to this
1.9
1.10 m = imported
1.11 -imported.a = 9 # detected with warning
1.12 -m.a = 8 # detected with warning (m is always imported)
1.13 -
1.14 -imported.x = 1 # detected with warning (despite no collision)
1.15 +imported.a # cannot assign to this
1.16 +m.a # cannot assign to this (m is known)
1.17
1.18 class C: # hack: make an attribute called y known to the system
1.19 y = None # hack: this prevents compilation errors with the statements
1.20 @@ -16,6 +14,7 @@
1.21
1.22 n = None
1.23 n = imported
1.24 +n.a = 1 # not detected due to reassignment of n
1.25 n.y = 2 # not detected due to reassignment of n
1.26 n.y = 3 # not detected due to reassignment of n
1.27