Opened 2 years ago

Last modified 2 years 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 2 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 2 years ago by DefaultCC Plugin

  • Cc jml added

Changed 2 years ago by therve

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