[Zope-Checkins] CVS: Zope3/lib/python/Zope/TAL/tests - test_sourcepos.py:1.4

Fred L. Drake, Jr. fdrake@acm.org
Wed, 12 Jun 2002 10:45:00 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv31213

Modified Files:
	test_sourcepos.py 
Log Message:
Show both the received and expected output when there's a failure.


=== Zope3/lib/python/Zope/TAL/tests/test_sourcepos.py 1.3 => 1.4 ===
         interp()
         self.assertEqual(stream.getvalue().strip(), expected.strip(),
-                         stream.getvalue())
+                         "Got result:\n%s\nExpected:\n%s"
+                         % (stream.getvalue(), expected))
 
 
 def test_suite():