Francisco Martín Brugué <[email protected]> added the comment:
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
----------
nosy: +francismb
Added file: http://bugs.python.org/file22441/issue10206.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10206>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com