From: Brian Curtin Date: Wed, 6 Jul 2011 00:16:37 +0000 (-0500) Subject: Normalize whitespace for #11512 fix. X-Git-Tag: v3.3.0a1~1941 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=692e26be467e1aecf8fb138c54276626f6c87fb7;p=thirdparty%2FPython%2Fcpython.git Normalize whitespace for #11512 fix. --- diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py index f7e851a48f39..16a4b1a03472 100644 --- a/Lib/test/test_cgitb.py +++ b/Lib/test/test_cgitb.py @@ -5,19 +5,19 @@ import subprocess import cgitb class TestCgitb(unittest.TestCase): - + def test_fonts(self): text = "Hello Robbie!" self.assertEqual(cgitb.small(text), "{}".format(text)) self.assertEqual(cgitb.strong(text), "{}".format(text)) self.assertEqual(cgitb.grey(text), '{}'.format(text)) - + def test_blanks(self): self.assertEqual(cgitb.small(""), "") self.assertEqual(cgitb.strong(""), "") self.assertEqual(cgitb.grey(""), "") - + def test_html(self): try: raise ValueError("Hello World") @@ -35,11 +35,11 @@ class TestCgitb(unittest.TestCase): text = cgitb.text(sys.exc_info()) self.assertIn("ValueError", text) self.assertIn("Hello World", text) - + def test_hook(self): proc = subprocess.Popen([sys.executable, '-c', - ('import cgitb;' - 'cgitb.enable();' + ('import cgitb;' + 'cgitb.enable();' 'raise ValueError("Hello World")')], stdout=subprocess.PIPE) out = proc.stdout.read().decode(sys.getfilesystemencoding()) @@ -50,6 +50,6 @@ class TestCgitb(unittest.TestCase): def test_main(): run_unittest(TestCgitb) - + if __name__ == "__main__": test_main()