[Checkins] SVN: zope.testing/trunk/ - LP #560259: Fix subunit output formatter to handle layer setup

Sidnei da Silva sidnei.da.silva at gmail.com
Tue Apr 13 06:23:54 EDT 2010


Log message for revision 110765:
  - LP #560259: Fix subunit output formatter to handle layer setup
    errors.
  
  

Changed:
  U   zope.testing/trunk/CHANGES.txt
  U   zope.testing/trunk/src/zope/testing/testrunner/formatter.py

-=-
Modified: zope.testing/trunk/CHANGES.txt
===================================================================
--- zope.testing/trunk/CHANGES.txt	2010-04-13 09:49:21 UTC (rev 110764)
+++ zope.testing/trunk/CHANGES.txt	2010-04-13 10:23:53 UTC (rev 110765)
@@ -4,6 +4,9 @@
 3.9.4 (unreleased)
 ==================
 
+- LP #560259: Fix subunit output formatter to handle layer setup
+  errors.
+
 - LP #399394:  Added a ``--stop-on-error`` / ``--stop`` / ``-x`` option to
   the testrunner.
 

Modified: zope.testing/trunk/src/zope/testing/testrunner/formatter.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner/formatter.py	2010-04-13 09:49:21 UTC (rev 110764)
+++ zope.testing/trunk/src/zope/testing/testrunner/formatter.py	2010-04-13 10:23:53 UTC (rev 110765)
@@ -795,8 +795,7 @@
         """Report an error."""
         # XXX: Mostly used for user errors, sometimes used for errors in the
         # test framework, sometimes used to record layer setUp failure (!!!).
-        # How should this be encoded?
-        raise NotImplementedError(self.error)
+        self._stream.write('%s\n' % (message,))
 
     def error_with_banner(self, message):
         """Report an error with a big ASCII banner."""



More information about the checkins mailing list