[ZPT] CVS: Packages/TAL - test_xmlparser.py:1.2

fred@digicool.com fred@digicool.com
Mon, 9 Apr 2001 18:21:52 -0400 (EDT)


Update of /cvs-repository/Packages/TAL/test
In directory korak:/tmp/cvs-serv14504

Modified Files:
	test_xmlparser.py 
Log Message:

XMLParserTestCase.check_bad_nesting():
    Use self.fail() instead of naming AssertionError directly; how PyUnit
    deals with the error is it's problem, not ours.  ;-)



--- Updated File test_xmlparser.py in package Packages/TAL --
--- test_xmlparser.py	2001/03/26 19:21:07	1.1
+++ test_xmlparser.py	2001/04/09 22:21:51	1.2
@@ -151,7 +151,7 @@
             self.assert_(e.lineno == 1,
                          "did not receive correct position information")
         else:
-            raise AssertionError("expected parse error: bad nesting")
+            self.fail("expected parse error: bad nesting")
 
     def check_attr_syntax(self):
         output = [