Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
a67a8473
Commit
a67a8473
authored
Mar 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int->bool affects doctest
parent
1d567cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/persistent/tests/test_overriding_attrs.py
src/persistent/tests/test_overriding_attrs.py
+3
-3
No files found.
src/persistent/tests/test_overriding_attrs.py
View file @
a67a8473
...
...
@@ -16,7 +16,7 @@
This module tests and documents, through example, overriding attribute
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
...
...
@@ -48,7 +48,7 @@ class SampleOverridingGetattr(Persistent):
>>> o._p_oid
>>> o._p_jar
>>> o.spam
('SPAM',
0
)
('SPAM',
False
)
>>> o.spam = 1
>>> o.spam
1
...
...
@@ -65,7 +65,7 @@ class SampleOverridingGetattr(Persistent):
And now, if we ask for an attribute it doesn't have,
>>> o.eggs
('EGGS',
0
)
('EGGS',
False
)
And we see that the object was activated before calling the
__getattr__ method.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment