[New-bugs-announce] [issue6418] unittest.TestProgram change breaks nose

Jason Pellerin report at bugs.python.org
Sat Jul 4 22:27:28 CEST 2009

New submission from Jason Pellerin <jpellerin at gmail.com>:

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 
populated with the default TextTestRunner class in TestProgram.__init__. 
nose expects self.testRunner to be None or a runner instance in 
runTests(), and thus fails immediately with 2.6.3.

If initialization of self.testRunner could be deferred to runTests() as 
in unitttest for 2.5 and earlier, that would be ideal for nose.

components: Library (Lib)
messages: 90123
nosy: jpellerin
severity: normal
status: open
title: unittest.TestProgram change breaks nose
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list