micropython

Change of tests/attributes_instance_assignment_on_self.py

487:a898fc7c3998
tests/attributes_instance_assignment_on_self.py
     1.1 --- a/tests/attributes_instance_assignment_on_self.py	Mon Feb 27 23:17:50 2012 +0100
     1.2 +++ b/tests/attributes_instance_assignment_on_self.py	Mon Feb 27 23:22:33 2012 +0100
     1.3 @@ -15,9 +15,16 @@
     1.4          self.y = y
     1.5          self.z = None
     1.6  
     1.7 +    def g(self, a):
     1.8 +        if self.z:
     1.9 +            self.x
    1.10 +        self.z = a
    1.11 +
    1.12  c = C(1)
    1.13  d = D(2)
    1.14  c.f(3)
    1.15 +d.g(4)
    1.16  result_3 = c.x
    1.17 +result_4 = d.z
    1.18  
    1.19  # vim: tabstop=4 expandtab shiftwidth=4