1.1 --- a/tests/importer.py Mon Jun 08 00:49:37 2009 +0200
1.2 +++ b/tests/importer.py Fri Jun 12 22:03:56 2009 +0200
1.3 @@ -2,20 +2,10 @@
1.4
1.5 import imported
1.6
1.7 -imported.attr # cannot assign to this
1.8 +result_123 = imported.attr # cannot assign to this
1.9
1.10 m = imported
1.11 -imported.a # cannot assign to this
1.12 -m.a # cannot assign to this (m is known)
1.13 -
1.14 -class C: # hack: make an attribute called y known to the system
1.15 - y = None # hack: this prevents compilation errors with the statements
1.16 - # hack: below
1.17 -
1.18 -n = None
1.19 -n = imported
1.20 -n.a = 1 # not detected due to reassignment of n
1.21 -n.y = 2 # not detected due to reassignment of n
1.22 -n.y = 3 # not detected due to reassignment of n
1.23 +result1_10 = imported.a # can only read from the attribute, not replace it
1.24 +result2_10 = m.a # can only read from the attribute (m is known)
1.25
1.26 # vim: tabstop=4 expandtab shiftwidth=4