homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author scoder
Recipients gregory.p.smith, neologix, python-dev, scoder, serhiy.storchaka, vstinner
Date 2013年07月18日.19:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374176964.6.0.957983387168.issue18408@psf.upfronthosting.co.za>
In-reply-to
Content
This test from lxml's ElementTree test suite crashes for me now when run against (c)ElementTree:
 def test_parser_target_error_in_start(self):
 assertEqual = self.assertEqual
 events = []
 class Target(object):
 def start(self, tag, attrib):
 events.append("start")
 assertEqual("TAG", tag)
 raise ValueError("TEST")
 def end(self, tag):
 events.append("end")
 assertEqual("TAG", tag)
 def close(self):
 return "DONE"
 parser = ET.XMLParser(target=Target())
 try:
 parser.feed("<TAG/>")
 except ValueError:
 self.assertTrue('TEST' in str(sys.exc_info()[1]))
 else:
 self.assertTrue(False)
 self.assertTrue("start" in events)
Python/ceval.c:1210: PyEval_EvalFrameEx: Assertion `!PyErr_Occurred()' failed.
(note: this is not the exact code, I removed a couple of conditions that are not used by ET)
History
Date User Action Args
2013年07月18日 19:49:24scodersetrecipients: + scoder, gregory.p.smith, vstinner, neologix, python-dev, serhiy.storchaka
2013年07月18日 19:49:24scodersetmessageid: <1374176964.6.0.957983387168.issue18408@psf.upfronthosting.co.za>
2013年07月18日 19:49:24scoderlinkissue18408 messages
2013年07月18日 19:49:24scodercreate

AltStyle によって変換されたページ (->オリジナル) /