Skip to content

Commit 9c32cfb

Browse files
committed
[text_parser_xml.py] Check Exceptions of ignore_error.xml File
Related to issue #276.
1 parent 5991ede commit 9c32cfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_parser_xml.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@ def test_invalid_version(self):
4141
def test_ignore_errors(self):
4242
filename = "ignore_errors.xml"
4343

44+
with self.assertRaises(ParserException):
45+
_ = self.xml_reader.from_file(os.path.join(self.basepath, filename))
46+
4447
doc = self.xml_reader_ignore.from_file(os.path.join(self.basepath, filename))
4548
doc.pprint()

0 commit comments

Comments
 (0)