diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-09 21:40:30 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-09 21:40:30 (GMT) |
commit | ab9ba27dc066adc6423ea137b9481cf524d10ffd (patch) | |
tree | c49709063ec8de0eae358ef462e9fe5faa0c44a0 /Lib/test/test_codeop.py | |
parent | c7ca3ffba3d41f24f6f66d40391a044f199785ac (diff) | |
download | cpython-ab9ba27dc066adc6423ea137b9481cf524d10ffd.zip cpython-ab9ba27dc066adc6423ea137b9481cf524d10ffd.tar.gz cpython-ab9ba27dc066adc6423ea137b9481cf524d10ffd.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/test/test_codeop.py')
-rw-r--r-- | Lib/test/test_codeop.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_codeop.py b/Lib/test/test_codeop.py index be9ca7b..7847fb3 100644 --- a/Lib/test/test_codeop.py +++ b/Lib/test/test_codeop.py @@ -13,7 +13,7 @@ class CodeopTests(unittest.TestCase): '''succeed iff str is a valid piece of code''' expected = compile(str, "<input>", symbol) self.assertEquals( compile_command(str, "<input>", symbol), expected) - + def assertIncomplete(self, str, symbol='single'): '''succeed iff str is the start of a valid piece of code''' @@ -41,13 +41,13 @@ class CodeopTests(unittest.TestCase): av("a=3\n\n") # special case - self.assertEquals(compile_command(""), + self.assertEquals(compile_command(""), compile("pass", "<input>", 'single')) av("3**3","eval") av("(lambda z: \n z**3)","eval") av("#a\n#b\na**3","eval") - + def test_incomplete(self): ai = self.assertIncomplete ai("(a **") @@ -59,7 +59,7 @@ class CodeopTests(unittest.TestCase): ai("if 9==3:\n pass\nelse:\n pass") ai("a = (") ai("a = 9+ \\") - + ai("(","eval") ai("(\n\n\n","eval") ai("(9+","eval") |