Commit 6950e633 authored by Tim Peters's avatar Tim Peters

Whitespace normalization.

parent 92fa557c
......@@ -205,7 +205,7 @@ class MappingBase(Base):
lst = list(self.t.values(max=99-x, min=0+x))
lst.sort()
self.assertEqual(lst,range(0+x,99-x+1))
def testValuesNegativeIndex(self):
L = [-3, 6, -11, 4]
for i in L:
......@@ -234,7 +234,7 @@ class MappingBase(Base):
self.assertEqual(list(lst), range(0+x, 99-x+1))
self.assertEqual(len(v), 100)
def testKeysNegativeIndex(self):
L = [-3, 6, -11, 4]
for i in L:
......@@ -266,7 +266,7 @@ class MappingBase(Base):
items = list(self.t.iteritems(min=12, max=20))
self.assertEqual(items, zip(range(12, 21), range(24, 43, 2)))
def testItemsNegativeIndex(self):
L = [-3, 6, -11, 4]
for i in L:
......
......@@ -57,14 +57,14 @@ Let's clear the handler:
[]
And then log something:
>>> logging.getLogger('foo.bar').info('blah')
and, sure enough, we still have no output:
>>> handler.records
[]
$Id$
"""
......@@ -112,11 +112,10 @@ class Handler(logging.Handler):
)
for record in self.records]
)
class InstalledHandler(Handler):
def __init__(self, *names):
Handler.__init__(self, *names)
self.install()
......@@ -37,7 +37,7 @@ except AttributeError:
# that failed.
path = os.path.join(persistent.tests.__path__[0], path)
source = open(path).read()
if globs is None:
globs = sys._getframe(1).f_globals
......
......@@ -630,4 +630,3 @@ class DataManagerAdapter(object):
def sortKey(self):
return self._datamanager.sortKey()
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