1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/failure/importer_module_attribute_assignment.py Fri Jun 12 22:03:56 2009 +0200
1.3 @@ -0,0 +1,15 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +import imported
1.7 +
1.8 +class C: # hack: make an attribute called y known to the system
1.9 + y = None # hack: this prevents compilation errors with the statements
1.10 + # hack: below
1.11 +
1.12 +n = None
1.13 +n = imported
1.14 +n.a = 1 # not detected due to reassignment of n
1.15 +n.y = 2 # not detected due to reassignment of n
1.16 +n.y = 3 # not detected due to reassignment of n
1.17 +
1.18 +# vim: tabstop=4 expandtab shiftwidth=4