[Python-checkins] cpython: Normalize whitespace for #11512 fix.

brian.curtin python-checkins at python.org
Wed Jul 6 02:16:53 CEST 2011


http://hg.python.org/cpython/rev/f362f0053eab
changeset:   71239:f362f0053eab
user:        Brian Curtin <brian at python.org>
date:        Tue Jul 05 19:16:37 2011 -0500
summary:
  Normalize whitespace for #11512 fix.

files:
  Lib/test/test_cgitb.py |  14 +++++++-------
  1 files changed, 7 insertions(+), 7 deletions(-)


diff --git a/Lib/test/test_cgitb.py b/Lib/test/test_cgitb.py
--- a/Lib/test/test_cgitb.py
+++ b/Lib/test/test_cgitb.py
@@ -5,19 +5,19 @@
 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 @@
             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 @@
 
 def test_main():
     run_unittest(TestCgitb)
-    
+
 if __name__ == "__main__":
     test_main()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list