[TIP] 2.6.3 unittest change breaks nose

jason pellerin jpellerin at gmail.com
Sat Jul 4 09:38:05 PDT 2009

This changeset:


breaks nose, as it changes the behavior of unittest.TestProgram in a
non-backwards-compatible way. Previously, when called like:


self.testRunner would be None when runTests() was called. Now, it is
immediately populated with the default TextTestRunner class. nose
expects self.testRunner to be None or a runner instance in runTests(),
and thus fails immediately with 2.6.3.

Maybe I'm being hypersensitive because I don't want to have to do new
releases of 0.10 and 0.11 to work around this, but it seems like
rather a large change for a point release, and also unnecessary. Why
not leave TestProgram.__init__ as it is in 2.6.2 -- or restore it to
how it was in 2.5? What is this change fixing?


More information about the testing-in-python mailing list