Commit fad042f3 authored by Jason Madden's avatar Jason Madden

Whitespace

parent ff326cc6
......@@ -401,7 +401,7 @@ class PickleCache(object):
pass
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.prev.next, node.next.prev = node.next, node.prev
self.non_ghost_count -= 1
......@@ -191,7 +191,6 @@ class _Persistent_Base(object):
inst._p_oid = 42
self.assertEqual(inst._p_oid, 42)
def test_delete_p_oid_wo_jar(self):
from persistent.timestamp import _makeOctets
OID = _makeOctets('\x01' * 8)
......@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base):
def _clearMRU(self, jar):
jar._cache._mru[:] = []
def test_accessed_with_jar_and_oid_but_not_in_cache(self):
# This scenario arises in ZODB: ZODB.serialize.ObjectWriter
# can assign a jar and an oid to newly seen persistent objects,
......
......@@ -22,7 +22,6 @@ class PickleCacheTests(unittest.TestCase):
self.orig_types = persistent.picklecache._CACHEABLE_TYPES
persistent.picklecache._CACHEABLE_TYPES += (DummyPersistent,)
def tearDown(self):
import persistent.picklecache
persistent.picklecache._CACHEABLE_TYPES = self.orig_types
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment