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
Hide 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):
...
@@ -401,7 +401,7 @@ class PickleCache(object):
pass
pass
def
__remove_from_ring
(
self
,
node
):
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
.
object
=
None
node
.
prev
.
next
,
node
.
next
.
prev
=
node
.
next
,
node
.
prev
node
.
prev
.
next
,
node
.
next
.
prev
=
node
.
next
,
node
.
prev
self
.
non_ghost_count
-=
1
self
.
non_ghost_count
-=
1
persistent/tests/test_persistence.py
View file @
fad042f3
...
@@ -191,7 +191,6 @@ class _Persistent_Base(object):
...
@@ -191,7 +191,6 @@ class _Persistent_Base(object):
inst
.
_p_oid
=
42
inst
.
_p_oid
=
42
self
.
assertEqual
(
inst
.
_p_oid
,
42
)
self
.
assertEqual
(
inst
.
_p_oid
,
42
)
def
test_delete_p_oid_wo_jar
(
self
):
def
test_delete_p_oid_wo_jar
(
self
):
from
persistent.timestamp
import
_makeOctets
from
persistent.timestamp
import
_makeOctets
OID
=
_makeOctets
(
'
\
x01
'
*
8
)
OID
=
_makeOctets
(
'
\
x01
'
*
8
)
...
@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base):
...
@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base):
def
_clearMRU
(
self
,
jar
):
def
_clearMRU
(
self
,
jar
):
jar
.
_cache
.
_mru
[:]
=
[]
jar
.
_cache
.
_mru
[:]
=
[]
def
test_accessed_with_jar_and_oid_but_not_in_cache
(
self
):
def
test_accessed_with_jar_and_oid_but_not_in_cache
(
self
):
# This scenario arises in ZODB: ZODB.serialize.ObjectWriter
# This scenario arises in ZODB: ZODB.serialize.ObjectWriter
# can assign a jar and an oid to newly seen persistent objects,
# 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):
...
@@ -22,7 +22,6 @@ class PickleCacheTests(unittest.TestCase):
self
.
orig_types
=
persistent
.
picklecache
.
_CACHEABLE_TYPES
self
.
orig_types
=
persistent
.
picklecache
.
_CACHEABLE_TYPES
persistent
.
picklecache
.
_CACHEABLE_TYPES
+=
(
DummyPersistent
,)
persistent
.
picklecache
.
_CACHEABLE_TYPES
+=
(
DummyPersistent
,)
def
tearDown
(
self
):
def
tearDown
(
self
):
import
persistent.picklecache
import
persistent.picklecache
persistent
.
picklecache
.
_CACHEABLE_TYPES
=
self
.
orig_types
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