Commit 629c7393 authored by Fred Drake's avatar Fred Drake

XMLParserTestCase.check_bad_nesting():

    Use self.fail() instead of naming AssertionError directly; how PyUnit
    deals with the error is it's problem, not ours.  ;-)
parent e70583b7
...@@ -151,7 +151,7 @@ text ...@@ -151,7 +151,7 @@ text
self.assert_(e.lineno == 1, self.assert_(e.lineno == 1,
"did not receive correct position information") "did not receive correct position information")
else: else:
raise AssertionError("expected parse error: bad nesting") self.fail("expected parse error: bad nesting")
def check_attr_syntax(self): def check_attr_syntax(self):
output = [ output = [
......
...@@ -151,7 +151,7 @@ text ...@@ -151,7 +151,7 @@ text
self.assert_(e.lineno == 1, self.assert_(e.lineno == 1,
"did not receive correct position information") "did not receive correct position information")
else: else:
raise AssertionError("expected parse error: bad nesting") self.fail("expected parse error: bad nesting")
def check_attr_syntax(self): def check_attr_syntax(self):
output = [ output = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment