0

Is it possible to just print out all AssertionErrors in a unittest? I don't want to catch the exception like this:

try:
    self.assertIn(rdt), self.rdts, 'rdt %s not valid (only %s allowed) '
                 'at FID %d ' % (rdt, self.rdts, self.rd_fid,))
except AssertionError, ass:
    print '%s' % ass
    pass

I was thinking of a configuration option, that basically says print all errors but complete the test anyway.

Bhavesh Odedra
  • 10,294
  • 12
  • 30
  • 58
LarsVegas
  • 5,956
  • 9
  • 41
  • 63

0 Answers0