Normalize whitespace for #11512 fix.
authorBrian Curtin <brian@python.org>
Wed, 6 Jul 2011 00:16:37 +0000 (19:16 -0500)
committerBrian Curtin <brian@python.org>
Wed, 6 Jul 2011 00:16:37 +0000 (19:16 -0500)
Lib/test/test_cgitb.py

index f7e851a48f398a6b86c40383b3a643257fdb90af..16a4b1a0347289cc9a34b6da18ec171a84f72b34 100644 (file)
@@ -5,19 +5,19 @@ import subprocess
 import cgitb
 
 class TestCgitb(unittest.TestCase):
-    
+
     def test_fonts(self):
         text = "Hello Robbie!"
         self.assertEqual(cgitb.small(text), "<small>{}</small>".format(text))
         self.assertEqual(cgitb.strong(text), "<strong>{}</strong>".format(text))
         self.assertEqual(cgitb.grey(text),
                          '<font color="#909090">{}</font>'.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()