Comment 7 for bug 389942

Revision history for this message
Xavier Gnata (xavier-gnata-gmail) wrote : Re: [Bug 389942] Re: python-nose is broken in Karmic alpha 2

Andrew Straw wrote:
> It seems a difference between -0ubuntu1 and -0ubuntu2 (jaunty and karmic
> alpha 2) is this. It looks very relevant.
>
> --- a/Lib/unittest.py
> +++ b/Lib/unittest.py
> @@ -798,8 +798,10 @@ Examples:
> in MyTestCase
> """
> def __init__(self, module='__main__', defaultTest=None,
> - argv=None, testRunner=TextTestRunner,
> + argv=None, testRunner=None,
> testLoader=defaultTestLoader):
> + if testRunner is None:
> + testRunner = TextTestRunner
> if type(module) == type(''):
> self.module = __import__(module)
> for part in module.split('.')[1:]:
>
>
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/395362