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
4a2aef70
Commit
4a2aef70
authored
May 19, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use GHOST constant rather than numeric value.
parent
dd3f2af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
persistent/tests/test_picklecache.py
persistent/tests/test_picklecache.py
+2
-1
No files found.
persistent/tests/test_picklecache.py
View file @
4a2aef70
...
...
@@ -560,6 +560,7 @@ class PickleCacheTests(unittest.TestCase):
def
test_minimize_turns_into_ghosts
(
self
):
import
gc
from
persistent.interfaces
import
UPTODATE
from
persistent.interfaces
import
GHOST
from
persistent._compat
import
_b
cache
=
self
.
_makeOne
()
oid
=
_b
(
'oid_%04d'
%
1
)
...
...
@@ -571,7 +572,7 @@ class PickleCacheTests(unittest.TestCase):
self
.
assertEqual
(
cache
.
cache_non_ghost_count
,
0
)
self
.
assertEqual
(
obj
.
_p_state
,
-
1
)
self
.
assertEqual
(
obj
.
_p_state
,
GHOST
)
def
test_new_ghost_non_persistent_object
(
self
):
from
persistent._compat
import
_b
...
...
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