From 692e26be467e1aecf8fb138c54276626f6c87fb7 Mon Sep 17 00:00:00 2001 From: Brian Curtin Date: Tue, 5 Jul 2011 19:16:37 -0500 Subject: Normalize whitespace for #11512 fix. --- Lib/test/test_cgitb.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py index f7e851a..16a4b1a 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() -- cgit v0.12