Ticket #6199 defect new

Opened 6 months ago

Last modified 6 months ago

SynchronousTestCase doesn't always flush logged failures

Reported by: therve Owned by:
Priority: normal Milestone:
Component: trial Keywords:
Cc: jml Branch:
Author: Launchpad Bug:

Description

If a test case logs a failure, but then fails for some other reasons (like a failed assert), flushErrors is not called, and thus the logged failure leaks to the next test.

Attachments

t.py Download (273 bytes) - added by therve 6 months ago.

Change History

1

Changed 6 months ago by DefaultCC Plugin

  • cc jml added

Changed 6 months ago by therve

  • attachment t.py Download added

2

Changed 6 months ago by therve

The attached test file reproduces the problem for me: both test_1 and test_2 fails, whereas test_2 is correct.

3

Changed 6 months ago by exarkun

  • summary changed from SynchronousTestCase doesn't always clean failures to SynchronousTestCase doesn't always flush logged failures
Note: See TracTickets for help on using tickets.