summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-02-19 02:35:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-02-19 02:35:07 (GMT)
commitf2715e076435b74638acb81512c2ee014f75aea2 (patch)
tree8f50b5bca2f1d4d7c232894d907996f4104c3515 /Lib/test/test_builtin.py
parentf805cd2c1f4d850b1d933f39e63a61a3348ec224 (diff)
downloadcpython-f2715e076435b74638acb81512c2ee014f75aea2.zip
cpython-f2715e076435b74638acb81512c2ee014f75aea2.tar.gz
cpython-f2715e076435b74638acb81512c2ee014f75aea2.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index f52d9c6..af497a0 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -352,10 +352,10 @@ class BuiltinTest(unittest.TestCase):
filter(identity, Squares(5))
self.assertRaises(TypeError, filter)
class BadSeq(object):
- def __getitem__(self, index):
- if index<4:
- return 42
- raise ValueError
+ def __getitem__(self, index):
+ if index<4:
+ return 42
+ raise ValueError
self.assertRaises(ValueError, filter, lambda x: x, BadSeq())
def badfunc():
pass
@@ -441,13 +441,13 @@ class BuiltinTest(unittest.TestCase):
for (cls, inps) in inputs.iteritems():
for (inp, exp) in inps.iteritems():
- # make sure the output goes through __getitem__
- # even if func is None
- self.assertEqual(
- filter(funcs[0], cls(inp)),
- filter(funcs[1], cls(inp))
- )
- for func in funcs:
+ # make sure the output goes through __getitem__
+ # even if func is None
+ self.assertEqual(
+ filter(funcs[0], cls(inp)),
+ filter(funcs[1], cls(inp))
+ )
+ for func in funcs:
outp = filter(func, cls(inp))
self.assertEqual(outp, exp)
self.assert_(not isinstance(outp, cls))
@@ -1039,10 +1039,10 @@ class BuiltinTest(unittest.TestCase):
self.assertRaises(TypeError, round)
def test_setattr(self):
- setattr(sys, 'spam', 1)
- self.assertEqual(sys.spam, 1)
- self.assertRaises(TypeError, setattr, sys, 1, 'spam')
- self.assertRaises(TypeError, setattr)
+ setattr(sys, 'spam', 1)
+ self.assertEqual(sys.spam, 1)
+ self.assertRaises(TypeError, setattr, sys, 1, 'spam')
+ self.assertRaises(TypeError, setattr)
def test_str(self):
self.assertEqual(str(''), '')