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
39b9725f
Commit
39b9725f
authored
May 19, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up monkey-patching of picklecache._SWEEPABLE_TYPES by the test case.
parent
6f7d9f9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
persistent/tests/test_picklecache.py
persistent/tests/test_picklecache.py
+4
-5
No files found.
persistent/tests/test_picklecache.py
View file @
39b9725f
...
...
@@ -968,15 +968,14 @@ class PickleCacheTests(unittest.TestCase):
import
persistent.picklecache
sweep_types
=
persistent
.
picklecache
.
_SWEEPABLE_TYPES
try
:
persistent
.
picklecache
.
_SWEEPABLE_TYPES
=
DummyPersistent
try
:
self
.
assertEqual
(
cache
.
full_sweep
(),
0
)
finally
:
persistent
.
picklecache
.
_SWEEPABLE_TYPES
=
sweep_types
del
p
.
_p_deactivate
self
.
assertEqual
(
cache
.
full_sweep
(),
1
)
finally
:
persistent
.
picklecache
.
_SWEEPABLE_TYPES
=
sweep_types
if
_is_jython
:
def
with_deterministic_gc
(
f
):
...
...
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