nose-devs/nose — Issue #338: upstream change in python 2.6.3 breaks nose.TestProgram
Author: jpellerin
Created: 2011-12-14 16:08:20+00:00
State: open

Run nosetests on a system with a python2.6 installation built from a recent
version of the release26-maint branch - e.g. the default python on Ubuntu
Karmic.

It dies with TypeError: unbound method run() must be called with
TextTestRunner instance as first argument (got ContextSuite instance instead)

The problem is that there is a subtle behaviour change in
unittest.TestProgram.__init__ - formerly, passing a None testRunner caused
self.testRunner to be set to None. Now, it is defaulted to
unittest.TextTestRunner immediately within __init__.

nose's override of TestProgram.runTests fails to treat the self.testRunner
field in a way compatible with the way it is treated by the parent class,
and thus it breaks.

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/nose/+bug/389942

I am experiencing the bug with nose 0.10.4, but I have checked the relevant
code in 0.11.1 and tip and it is the same.

Google Code Info:
Issue #: 276
Author: m...@f2s.com
Created On: 2009-07-04T16:18:22.000Z
Closed On: 2009-07-24T16:18:53.000Z