# HG changeset patch # User paulb@localhost.localdomain # Date 1180291346 -7200 # Node ID 8dc39eefa7d27ff901c7c7cc5f0378593439e04f # Parent 52cdfcb4af3be089fbc952e9ab35685aeb94255f Made the test function as intended. diff -r 52cdfcb4af3b -r 8dc39eefa7d2 tests/class.py --- a/tests/class.py Sun May 27 19:45:48 2007 +0200 +++ b/tests/class.py Sun May 27 20:42:26 2007 +0200 @@ -1,10 +1,14 @@ class A: "A class with attribute and method." x = 123.456 + x2 = x + def m(self, x): self.x = x - def n(self, y=x): + + def n(self, y=A.x): self.y = y + n2 = n a1 = A() a2 = A()