[SciPy-Dev] line endings in test failures?
Skipper Seabold
jsseabold at gmail.com
Thu May 20 10:44:34 EDT 2010
On Thu, May 20, 2010 at 8:34 AM, Pauli Virtanen <pav at iki.fi> wrote:
> Wed, 19 May 2010 22:55:02 -0400, Skipper Seabold wrote:
> [clip]
>> AssertionError:
>> Arrays are not almost equal
>>
>> (mismatch 33.3333333333%)
>> x: array([ -1.93673837 +1.93673837j, -15.54586983+17.54586983j,
>> 2.03078222 +1.96921778j], dtype=complex64)
>> y: array([ -1.93673837 +1.93673837j, -15.54586983+17.54587173j,
>> 2.03078222 +1.96921754j], dtype=complex64)
>>>> raise AssertionError('\nArrays are not almost equal\n\n(mismatch
>>>> 33.3333333333%)\n x: array([ -1.93673837 +1.93673837j,
>>>> -15.54586983+17.54586983j,\n 2.03078222 +1.96921778j],
>>>> dtype=complex64)\n y: array([ -1.93673837 +1.93673837j,
>>>> -15.54586983+17.54587173j,\n 2.03078222 +1.96921754j],
>>>> dtype=complex64)')
>
> That's Nose's --detailed-errors in action.
>
Ah, so it is. Just out of curiosity, why did you turn this always on?
I don't see what assert introspection adds in a case like this. Is
it possible to make it optional but a default keyword to
NoseTester.test's extra_argv?
Skipper
More information about the SciPy-Dev
mailing list