[TIP] 2.6.3 unittest change breaks nose

Jesse Noller jnoller at gmail.com
Sat Jul 4 18:15:00 PDT 2009


On Sat, Jul 4, 2009 at 12:42 PM, Barry Warsaw<barry at python.org> wrote:
> On Jul 4, 2009, at 12:38 PM, jason pellerin wrote:
>
>> This changeset:
>>
>> http://hg.python.org/cpython/rev/c3fb79d1c036
>>
>> breaks nose, as it changes the behavior of unittest.TestProgram in a
>> non-backwards-compatible way. Previously, when called like:
>>
>> TestProgram(testRunner=None)
>>
>> 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.
>
> Please submit a bug report on this, if there isn't one already.  You can
> make it a release blocker for 2.6.4.
>
> -Barry

Is it really too late to fix this for 2.6.3? I know we're talking
about a beta soonish in July, but this change seems like it shouldn't
have gotten into 2.6.3 (not the bug fix, rather the behavioral change)
to begin with.

jesse



More information about the testing-in-python mailing list