This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author purcell
Recipients
Date 2005-04-10.18:53:40
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=21477

The idea of using difflib to contract the failure   
messages is a great one.  Having had some   
exposure to GUI front-ends for JUnit, such as those   
available in IDEA and Eclipse, it seems to me that all   
the information available at the point of failure should   
be stored, and only formatted for display by the   
TestRunner at a later point. Eclipse, for example, can  
show long expected and actual value panes in a  
colour-code side-by-side diff viewer, which is even  
better than the difflib output.  
  
Neither the current nor the patched version of unittest  
take the approach of delegating failure message  
formatting to the Runner, but I'd prefer to see things  
move in that direction that to merge this patch in its  
current form.  
  
I guess that a richer hierarchy of failure exceptions  
would be required, so that TestRunners could elect  
to treat specific failures in their own preferred way. 
History
Date User Action Args
2007-08-23 15:22:31adminlinkissue725569 messages
2007-08-23 15:22:31admincreate