Commit fad042f3 authored by Jason Madden's avatar Jason Madden

Whitespace

parent ff326cc6
...@@ -401,7 +401,7 @@ class PickleCache(object): ...@@ -401,7 +401,7 @@ class PickleCache(object):
pass pass
def __remove_from_ring(self, node): 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.object = None
node.prev.next, node.next.prev = node.next, node.prev node.prev.next, node.next.prev = node.next, node.prev
self.non_ghost_count -= 1 self.non_ghost_count -= 1
...@@ -191,7 +191,6 @@ class _Persistent_Base(object): ...@@ -191,7 +191,6 @@ class _Persistent_Base(object):
inst._p_oid = 42 inst._p_oid = 42
self.assertEqual(inst._p_oid, 42) self.assertEqual(inst._p_oid, 42)
def test_delete_p_oid_wo_jar(self): def test_delete_p_oid_wo_jar(self):
from persistent.timestamp import _makeOctets from persistent.timestamp import _makeOctets
OID = _makeOctets('\x01' * 8) OID = _makeOctets('\x01' * 8)
...@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base): ...@@ -1471,7 +1470,6 @@ class PyPersistentTests(unittest.TestCase, _Persistent_Base):
def _clearMRU(self, jar): def _clearMRU(self, jar):
jar._cache._mru[:] = [] jar._cache._mru[:] = []
def test_accessed_with_jar_and_oid_but_not_in_cache(self): def test_accessed_with_jar_and_oid_but_not_in_cache(self):
# This scenario arises in ZODB: ZODB.serialize.ObjectWriter # This scenario arises in ZODB: ZODB.serialize.ObjectWriter
# can assign a jar and an oid to newly seen persistent objects, # can assign a jar and an oid to newly seen persistent objects,
......
...@@ -22,7 +22,6 @@ class PickleCacheTests(unittest.TestCase): ...@@ -22,7 +22,6 @@ class PickleCacheTests(unittest.TestCase):
self.orig_types = persistent.picklecache._CACHEABLE_TYPES self.orig_types = persistent.picklecache._CACHEABLE_TYPES
persistent.picklecache._CACHEABLE_TYPES += (DummyPersistent,) persistent.picklecache._CACHEABLE_TYPES += (DummyPersistent,)
def tearDown(self): def tearDown(self):
import persistent.picklecache import persistent.picklecache
persistent.picklecache._CACHEABLE_TYPES = self.orig_types 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