Please support a warnings_test function which is given the full list of captured warnings, so that I can easily add my own more stringent assertions.

Things I'd want to assert:
 * exact number of exceptions
 * exact type of exceptions
 * exact values (args) of exceptions