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
58b98ce2
Commit
58b98ce2
authored
Oct 07, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Plain Diff
Another stab at ZODB 3.6.0a4.
parents
f3383c22
4b0288e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/persistent/tests/persistenttestbase.py
src/persistent/tests/persistenttestbase.py
+8
-3
No files found.
src/persistent/tests/persistenttestbase.py
View file @
58b98ce2
...
...
@@ -16,6 +16,9 @@ import unittest
from
persistent
import
Persistent
from
persistent.interfaces
import
IPersistent
# Confusing: ZODB doesn't use this file. It appears to be used only
# by Zope3, where it's imported by zope/app/schema/tests/test_wrapper.py.
try
:
import
zope.interface
except
ImportError
:
...
...
@@ -115,8 +118,10 @@ class Test(unittest.TestCase):
self
.
assertEqual
(
dm
.
called
,
1
)
def
testGhostChanged
(
self
):
# An object is a ghost, and it's _p_changed it set to True.
# This assignment should have no effect.
# If an object is a ghost and its _p_changed is set to True (any
# true value),i t should activate (unghostify) the object. This
# behavior is new in ZODB 3.6; before then, an attempt to do
# "ghost._p_changed = True" was ignored.
p
=
self
.
klass
()
p
.
_p_oid
=
1
dm
=
DM
()
...
...
@@ -124,7 +129,7 @@ class Test(unittest.TestCase):
p
.
_p_deactivate
()
self
.
assertEqual
(
p
.
_p_changed
,
None
)
p
.
_p_changed
=
True
self
.
assertEqual
(
p
.
_p_changed
,
None
)
self
.
assertEqual
(
p
.
_p_changed
,
1
)
def
testRegistrationFailure
(
self
):
p
=
self
.
klass
()
...
...
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