Message138955
| Author |
francismb |
| Recipients |
benjamin.peterson, eric.smith, francismb, petri.lehtinen, r.david.murray, skrah |
| Date |
2011年06月24日.15:49:31 |
| SpamBayes Score |
0.00039425094 |
| Marked as misclassified |
No |
| Message-id |
<1308930572.67.0.198983818874.issue10206@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I've attached an alternative test case.
I'm not sure if there is a more robust way to test:
self.assert_('SyntaxError' in err.decode('ascii', 'ignore'))
Due the use of 'SyntaxtError' directly as string. I would prefer something like str(SyntaxtError) (or just the name of the exception
without extra text)
Review is welcome |
|