diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-09-12 03:49:31 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-09-12 03:49:31 (GMT) |
commit | 0e9980f75a203ee1b2ac28f76a76239446b271d6 (patch) | |
tree | d1691347ed42925a68cebb2647d83dba6d45cb55 /Lib/test | |
parent | 2ee8099bd82b5eea9a3efc54f7bcdd12b54f84cf (diff) | |
download | cpython-0e9980f75a203ee1b2ac28f76a76239446b271d6.zip cpython-0e9980f75a203ee1b2ac28f76a76239446b271d6.tar.gz cpython-0e9980f75a203ee1b2ac28f76a76239446b271d6.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_compiler.py | 8 | ||||
-rw-r--r-- | Lib/test/test_re.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index 1d77318..183efb5 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -50,9 +50,9 @@ class CompilerTest(unittest.TestCase): def _check_lineno(self, node): if not node.__class__ in NOLINENO: - self.assert_(isinstance(node.lineno, int), + self.assert_(isinstance(node.lineno, int), "lineno=%s on %s" % (node.lineno, node.__class__)) - self.assert_(node.lineno > 0, + self.assert_(node.lineno > 0, "lineno=%s on %s" % (node.lineno, node.__class__)) for child in node.getChildNodes(): self.check_lineno(child) @@ -84,12 +84,12 @@ except: yo = 3 else: yo += 3 - + try: a += b finally: b = 0 - + ############################################################################### def test_main(): diff --git a/Lib/test/test_re.py b/Lib/test/test_re.py index 9e5fe0d..07bc63b 100644 --- a/Lib/test/test_re.py +++ b/Lib/test/test_re.py @@ -104,7 +104,7 @@ class ReTests(unittest.TestCase): self.assertEqual(re.sub('x', r'\400', 'x'), '\0') self.assertEqual(re.sub('x', r'\777', 'x'), '\377') - + self.assertRaises(re.error, re.sub, 'x', r'\1', 'x') self.assertRaises(re.error, re.sub, 'x', r'\8', 'x') self.assertRaises(re.error, re.sub, 'x', r'\9', 'x') |