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
782026da
Commit
782026da
authored
May 19, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The exact size can actually be known when testing shrinking to a byte size of 0.
parent
39b9725f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
persistent/tests/test_picklecache.py
persistent/tests/test_picklecache.py
+1
-3
No files found.
persistent/tests/test_picklecache.py
View file @
782026da
...
...
@@ -1028,9 +1028,7 @@ class PickleCacheTests(unittest.TestCase):
self
.
assertTrue
(
cache
.
total_estimated_size
>
1
)
# A gc shrinks the bytes
cache
.
incrgc
()
self
.
assertTrue
(
cache
.
total_estimated_size
<=
1
)
# sanity check
self
.
assertTrue
(
cache
.
total_estimated_size
>=
0
)
self
.
assertEqual
(
cache
.
total_estimated_size
,
0
)
# It also shrank the measured size of the cache;
# this would fail under PyPy if _SWEEP_NEEDS_GC was False
...
...
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