[Zope3-checkins] CVS: Zope3/utilities - unittestgui.py:1.14

Albertas Agejevas alga@codeworks.lt
Thu, 13 Mar 2003 13:49:21 -0500


Update of /cvs-repository/Zope3/utilities
In directory cvs.zope.org:/tmp/cvs-serv1411/utilities

Modified Files:
	unittestgui.py 
Log Message:
An unexpected raid by the Whitespace Police.

Other than fixes of nonconforming whitespace, just a couple of $Id$
docstrings has been added.



=== Zope3/utilities/unittestgui.py 1.13 => 1.14 ===
--- Zope3/utilities/unittestgui.py:1.13	Wed Dec 25 09:15:36 2002
+++ Zope3/utilities/unittestgui.py	Thu Mar 13 13:49:20 2003
@@ -79,9 +79,7 @@
         "Override to display an error arising from GUI usage"
         pass
 
-    def runClicked( self
-                  , COMMA_SPACE=re.compile( '[, ]+' )
-                  ):
+    def runClicked(self, COMMA_SPACE=re.compile('[, ]+')):
         "To be called in response to user choosing to run a test"
         if self.running: return
         testName = self.getSelectedTestName()
@@ -94,10 +92,10 @@
         self.notifyStartImport()
         try:
             test = unittest.defaultTestLoader.loadTestsFromNames(
-                                COMMA_SPACE.split( testName ) )
-            warnings = getattr( test, 'warnings', [] )
+                COMMA_SPACE.split(testName))
+            warnings = getattr(test, 'warnings', [])
             for sub_test in test._tests:
-                warnings.extend( getattr( sub_test, 'warnings', [] ) )
+                warnings.extend(getattr(sub_test, 'warnings', []))
             test.warnings = warnings
         except:
             exc_type, exc_value, exc_tb = sys.exc_info()
@@ -110,9 +108,9 @@
         self.totalTests = test.countTestCases()
         self.running = 1
         self.notifyRunning()
-        warnings = getattr( test, 'warnings', () )
+        warnings = getattr(test, 'warnings', ())
         for warning in warnings:
-            self.notifyWarning( warning[0], warning[1] )
+            self.notifyWarning(warning[0], warning[1])
         test.run(self.currentResult)
         self.running = 0
         self.notifyStopped()