[Piglit] [PATCH] generated_tests: work around bug in Windows numpy implementation.

Paul Berry stereotype441 at gmail.com
Fri Sep 9 06:47:49 PDT 2011


>
> Paul,
>
> This is not a windows specific bug. It looks like numpy creates many
> identical type objects on all OSes, so type object identity/equality means
> nothing.
>
> Take for example what "pydoc numpy" outputs on my Linux system:
>
> CLASSES
>    __builtin__.object
>        broadcast
>        dtype
>        flatiter
>        generic
> [...]
>            number
> [...]
>                integer
>                    signedinteger
>                        int16
>                        int16
>                        int32
>                        int32
>                        int64(signedinteger, __builtin__.int)
>                        int64(signedinteger, __builtin__.int)
>                        int64(signedinteger, __builtin__.int)
>                        int64(signedinteger, __builtin__.int)
>                        int64(signedinteger, __builtin__.int)
>                        int8
>                        int8
>                    unsignedinteger
>                        uint16
>                        uint16
>                        uint32
>                        uint32
>                        uint64
>                        uint64
>                        uint64
>                        uint64
>                        uint64
>                        uint8
>                        uint8
>
> You were just lucky on Linux so far, and Windows unlucky, but your luck may
> change with different numpy versions, and or other systems. Who knows.
>

Wow.  That is enough to convince me that my change is too brittle.  Good
call, Jose.

Do you have any idea if the developers of numpy know about this?  It seems
like a bug to me, and I want to file a bug report, but unfortunately the
server at projects.scipy.org is giving me errors.  I'll try again later
today.


>
> I believe such a hanging dagger on the testsuite is not good.
>
> I have windows systems handy. So I'll try to do the proposed change myself
> as soon as I find the time.
>

Awesome.  Thanks so much for helping with this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20110909/099475b5/attachment.htm>


More information about the Piglit mailing list