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
567a985b
Commit
567a985b
authored
Apr 09, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A better name for that test.
parent
a4f4d9f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
persistent/tests/test_picklecache.py
persistent/tests/test_picklecache.py
+4
-2
No files found.
persistent/tests/test_picklecache.py
View file @
567a985b
...
...
@@ -983,7 +983,7 @@ class PickleCacheTests(unittest.TestCase):
# Nothing to test, just that it doesn't break
cache
.
_invalidate
(
p
.
_p_oid
)
def
test_cache_garbage_collection_bytes
(
self
):
def
test_cache_garbage_collection_bytes
_also_deactivates_object
(
self
):
from
persistent.interfaces
import
UPTODATE
from
persistent._compat
import
_b
cache
=
self
.
_makeOne
()
...
...
@@ -998,7 +998,9 @@ class PickleCacheTests(unittest.TestCase):
o
.
_Persistent__size
=
2
# mimic what the real persistent object does to update the cache
# size
# size; if we don't get deactivated by sweeping, the cache size
# won't shrink so this also validates that _p_deactivate gets
# called when ejecting an object.
o
.
_p_deactivate
=
lambda
:
cache
.
update_object_size_estimation
(
oid
,
-
1
)
...
...
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