npryce/python-factcheck — pull request #1 by matt-thomson (2013-06-26 20:35:56+00:00)
Title: Show parameters that cause test failures

Hi Nat,

In this morning's session, we discussed how it was difficult to tell what parameter values caused an assertion to fail. I've just modified factcheck to add them to the assertion message.

This doesn't do anything for other exceptions, since I didn't want to overwrite other exception arguments (for an AssertionError, all of the message is in args[0]).

I've found this useful, so feel free to pull it if you want, or drop it if you're not happy with it.

Matt