[issue13450] add assertions to implement the intent in ''.format_map test

akira report at bugs.python.org
Tue Nov 22 18:28:51 CET 2011


akira <4kir4.1i at gmail.com> added the comment:

TypeError tests can check that an implementation raises a correct exception type i.e., it doesn't raise ValueError prematurely on invalid format_string without checking that there is mapping argument.

METH_O does it for CPython. I'm not sure how other implementations might behave.

eric: I'd read http://docs.python.org/devguide/patch.html#preparation but I thought 4 lines are not worth it to change Misc/ACKS. Full pseudonym: Akira Li

----------

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


More information about the Python-bugs-list mailing list