[IPython-dev] Strange test failure on Shining Panda with parallel tests...

MinRK benjaminrk at gmail.com
Sun Apr 15 14:58:57 EDT 2012


Should be fixed <https://github.com/ipython/ipython/pull/1608>

On Sun, Apr 15, 2012 at 11:46, MinRK <benjaminrk at gmail.com> wrote:

>
>
> On Sun, Apr 15, 2012 at 11:42, MinRK <benjaminrk at gmail.com> wrote:
>
>>
>>
>> On Sun, Apr 15, 2012 at 01:16, Fernando Perez <fperez.net at gmail.com>wrote:
>>
>>> Hey Min,
>>>
>>> this one looks odd to me, b/c the tests do pass just fine on my
>>> system, but for some reason the ar_sugar merge is causing trouble on
>>> one of the linux build bots:
>>>
>>>
>>> https://jenkins.shiningpanda.com/ipython/job/ipython-multi/PLATFORM=debian6,PYTHON=CPython-2.6/67/console
>>>
>>> Any idea what's going on there?  Those attributes were all added in
>>> that PR, so I'm not sure why they're not being found...
>>>
>>
>> They are properties, and I override `__getattr__()` for metadata access,
>> so for some reason Python 2.6 handles this differently than Python ≥ 2.7.
>>  I'll try to nail this one down.
>>
>
> Aha!  timedelta.total_seconds() was added in Python 2.7.  I'll add a
> wrapper, so that I don't rely on the method.  The error messages are just
> super weird, due to the bizarre code path followed when there are
> properties and getattr override and errors.  It seems to be doing:
>
> try:
>     ar.elapsed_property()
> except:
>     ar.__getattr__('elapsed')
>
> So the error in the property is actually resulting in the error in getattr
> (which should never have been called)
>
>
>>
>>
>>>
>>> Cheers,
>>>
>>> f
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120415/a78b9bd2/attachment.html>


More information about the IPython-dev mailing list