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 r.david.murray
Recipients benjamin.peterson, eric.smith, francismb, petri.lehtinen, r.david.murray, skrah
Date 2011年06月24日.16:07:21
SpamBayes Score 2.0891923e-05
Marked as misclassified No
Message-id <1308931642.19.0.759955232102.issue10206@psf.upfronthosting.co.za>
In-reply-to
Content
I think that self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') would be fine. We are extremely unlikely to change the string representation of the name of SyntaxError or omit it from the error message, so I think this is a reliable test. If you really want to be paranoid, you could use SyntaxError.__name__ as the argument to assertRegex, but there are a number of other places in the test suite where we hardcode the exception names, so I don't think it is necessary.
History
Date User Action Args
2011年06月24日 16:07:22r.david.murraysetrecipients: + r.david.murray, eric.smith, benjamin.peterson, skrah, petri.lehtinen, francismb
2011年06月24日 16:07:22r.david.murraysetmessageid: <1308931642.19.0.759955232102.issue10206@psf.upfronthosting.co.za>
2011年06月24日 16:07:21r.david.murraylinkissue10206 messages
2011年06月24日 16:07:21r.david.murraycreate

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