Opened 21 months ago

Last modified 21 months ago

#6199 defect new

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 (1)

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

Download all attachments as: .zip

Change History (4)

comment:1 Changed 21 months ago by DefaultCC Plugin

  • Cc jml added

Changed 21 months ago by therve

comment:2 Changed 21 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.

comment:3 Changed 21 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.