Commit a67a8473 authored by Jeremy Hylton's avatar Jeremy Hylton

int->bool affects doctest

parent 1d567cd5
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
This module tests and documents, through example, overriding attribute This module tests and documents, through example, overriding attribute
access methods. access methods.
$Id: test_overriding_attrs.py,v 1.3 2004/02/19 18:13:34 jeremy Exp $ $Id: test_overriding_attrs.py,v 1.4 2004/03/02 22:17:43 jeremy Exp $
""" """
from persistent import Persistent from persistent import Persistent
...@@ -48,7 +48,7 @@ class SampleOverridingGetattr(Persistent): ...@@ -48,7 +48,7 @@ class SampleOverridingGetattr(Persistent):
>>> o._p_oid >>> o._p_oid
>>> o._p_jar >>> o._p_jar
>>> o.spam >>> o.spam
('SPAM', 0) ('SPAM', False)
>>> o.spam = 1 >>> o.spam = 1
>>> o.spam >>> o.spam
1 1
...@@ -65,7 +65,7 @@ class SampleOverridingGetattr(Persistent): ...@@ -65,7 +65,7 @@ class SampleOverridingGetattr(Persistent):
And now, if we ask for an attribute it doesn't have, And now, if we ask for an attribute it doesn't have,
>>> o.eggs >>> o.eggs
('EGGS', 0) ('EGGS', False)
And we see that the object was activated before calling the And we see that the object was activated before calling the
__getattr__ method. __getattr__ method.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment