[issue11302] Add more tests to test_ast.py

Benjamin Peterson report at bugs.python.org
Mon Jun 27 16:41:13 CEST 2011


Benjamin Peterson <benjamin at python.org> added the comment:

You still haven't explained why including multiline literals is a good idea.

Also, the reason we avoid matching exact messages is it can vary across implementations. You can still do an accurate test with something like self.assertIn("foobar", str(e))

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11302>
_______________________________________


More information about the Python-bugs-list mailing list