summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-06 06:36:06 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-06 06:36:06 (GMT)
commitab914780ba6165620e3db81d11cb631de58b655a (patch)
treee914f6cde1837f1f5586f82af566f944191d7539 /Lib/test
parente8042e5e98a8a368f7d067683269c7cd0f663dfd (diff)
downloadcpython-ab914780ba6165620e3db81d11cb631de58b655a.zip
cpython-ab914780ba6165620e3db81d11cb631de58b655a.tar.gz
cpython-ab914780ba6165620e3db81d11cb631de58b655a.tar.bz2
Issue #24125: Saved error's line and column numbers when an error is occured
during closing expatreader. Fixed a regression introduced in issue #23865.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_sax.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py
index eabbf57..90f3016 100644
--- a/Lib/test/test_sax.py
+++ b/Lib/test/test_sax.py
@@ -1126,6 +1126,8 @@ class ErrorReportingTest(unittest.TestCase):
parser = create_parser()
parser.setContentHandler(ContentHandler()) # do nothing
self.assertRaises(SAXParseException, parser.parse, StringIO("<foo>"))
+ self.assertEqual(parser.getColumnNumber(), 5)
+ self.assertEqual(parser.getLineNumber(), 1)
def test_sax_parse_exception_str(self):
# pass various values from a locator to the SAXParseException to