Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
persistent
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
persistent
Commits
fad042f3
Commit
fad042f3
authored
Apr 09, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace
parent
ff326cc6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
4 deletions
+1
-4
persistent/picklecache.py
persistent/picklecache.py
+1
-1
persistent/tests/test_persistence.py
persistent/tests/test_persistence.py
+0
-2
persistent/tests/test_picklecache.py
persistent/tests/test_picklecache.py
+0
-1
No files found.
persistent/picklecache.py
View file @
fad042f3
...
...
@@ -401,7 +401,7 @@ class PickleCache(object):
pass
def
__remove_from_ring
(
self
,
node
):
"
Take the node, which previously contained a non-ghost, out of the ring
"
"
""Take the node, which previously contained a non-ghost, out of the ring.""
"
node
.
object
=
None
node
.
prev
.
next
,
node
.
next
.
prev
=
node
.
next
,
node
.
prev
self
.
non_ghost_count
-=
1
persistent/tests/test_persistence.py
View file @
fad042f3
...
...
@@ -191,7 +191,6 @@ class _Persistent_Base(object):
inst
.
_p_oid
=
42
self
.
assertEqual
(
inst
.
_p_oid
,
42
)
def
test_delete_p_oid_wo_jar
(
self
):
from
persistent.timestamp
import
_makeOctets
OID
=
_makeOctets
(
'
\
x01
'
*
8
)
...
...
@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base):
def
_clearMRU
(
self
,
jar
):
jar
.
_cache
.
_mru
[:]
=
[]
def
test_accessed_with_jar_and_oid_but_not_in_cache
(
self
):
# This scenario arises in ZODB: ZODB.serialize.ObjectWriter
# can assign a jar and an oid to newly seen persistent objects,
...
...
persistent/tests/test_picklecache.py
View file @
fad042f3
...
...
@@ -22,7 +22,6 @@ class PickleCacheTests(unittest.TestCase):
self
.
orig_types
=
persistent
.
picklecache
.
_CACHEABLE_TYPES
persistent
.
picklecache
.
_CACHEABLE_TYPES
+=
(
DummyPersistent
,)
def
tearDown
(
self
):
import
persistent.picklecache
persistent
.
picklecache
.
_CACHEABLE_TYPES
=
self
.
orig_types
...
...
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