Technical Article | Oct 20, 2011

PEP712 - Proposal to make unittest2 more accurate

by Frank Wiles
Title:Proposal to make unittest2 more accurate
Last-Modified:2011-10-20T14:40:01.661119 (Thu, 20 Oct 2011)
Authors:Frank Wiles <>, Jacob Kaplan-Moss <>, Jeff Triplett <>


This PEP describes a proposal to make unittest2 output more accurate and fun.

The Proposed Solution

Upon having more than 7 failing tests in a test run replace all 'F' character output with 'U's for the remainder of the test run.


This output formatting more accurately describes the mental state of the developer.


Ran 25 tests in 3.14159s
FAILED (failures=19)

Optional Add-On

Replace next passing test after 19 failures with 'CK'.

Reference Implementations




Recent Posts

Technical | Frank Wiles

Improved Django Tests

You write tests. Or at least you should be writing tests! As Jacob always says, "Code without tests is broken as designed."

Unfortunately you have to write a ton of boilerplate code to test even the simplest of things. This ...

Technical | Frank Wiles

Django Performance: 4 Simple Things

Optimizing for performance often comes with a bunch of headaches and hard problems, but it doesn’t always have to be that way.

Below are four simple things you can do to quickly and easily improve the performance of your ...

Technical | Frank Wiles

Wagtail 1.0 (beta) best Django CMS?

Now that the Wagtail CMS is gearing up for its 1.0 release, I wanted to take some time to introduce you to the all around best and most flexible Django CMS currently available. Wagtail has been around for a ...

All Posts

We are perfor­mance tuners, Django and PostgreSQL experts, infrastructure and scaling architects.

Learn More

2011-10-20T14:35:56 2015-05-29T05:29:50.156831 2011