Francisco Martín Brugué <franci...@email.de> added the comment:

On 06/24/2011 06:07 PM, R. David Murray wrote:
> self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')

I understand that's the standard way to check if a given failure 
happened in the command line or there is also a helper for that case 
(maybe something: assert_python_raises('-c', "'", SyntaxError))

Thanks !

Francisco

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10206>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to