Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
cc93599a
Commit
cc93599a
authored
Mar 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
int->bool affects doctest
parent
994f1cab
Changes
1
Show 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 @
cc93599a
...
...
@@ -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