2012-11-15 | Paul Boddie | raw files shortlog changelog graph | Added a failing test of assignment to an unknown attribute. | |
tests/failure/attributes_instance_assignment_external_only.py (file) |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/failure/attributes_instance_assignment_external_only.py Thu Nov 15 21:27:18 2012 +0100 1.3 @@ -0,0 +1,10 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + pass 1.8 + 1.9 +c = C() 1.10 +c.a = 123 1.11 +result_123 = c.a 1.12 + 1.13 +# vim: tabstop=4 expandtab shiftwidth=4