R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------

_______________________________________
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