Two of the failures

[  125s] =================================== FAILURES 
===================================
[  125s] _____________________ TestCoreDatatype.test_array_subclass 
_____________________
[  125s] 
[  125s] self = <test_arraydatatype.TestCoreDatatype 
testMethod=test_array_subclass>
[  125s] 
[  125s]     @pytest.mark.skipif( not np, reason="Numpy not available")
[  125s]     def test_array_subclass( self ):
[  125s]         s = Subclassed([0,1,2,3,4])
[  125s] >       result = arraydatatype.ArrayDatatype.asArray( s )
[  125s] 
[  125s] tests/test_arraydatatype.py:287: 
[  125s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ 
[  125s] src/arraydatatype.pyx:172: in 
OpenGL_accelerate.arraydatatype.ArrayDatatype.asArray
[  125s]     ???
[  125s] src/arraydatatype.pyx:47: in 
OpenGL_accelerate.arraydatatype.HandlerRegistry.c_lookup
[  125s]     ???
[  125s] OpenGL/plugins.py:16: in load
[  125s]     return importByName( self.import_path )
[  125s] OpenGL/plugins.py:38: in importByName
[  125s]     module = __import__( ".".join(moduleName), {}, {}, moduleName)
[  125s] OpenGL/arrays/numpymodule.py:28: in <module>
[  125s]     from OpenGL_accelerate.numpy_formathandler import NumpyHandler
[  125s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ 
[  125s] 
[  125s] >   ???
[  125s] E   AttributeError: 'module' object has no attribute 'float128'
[  125s] 
[  125s] src/numpy_formathandler.pyx:55: AttributeError
[  125s] ____________________ TestCoreDatatype.test_buffer_api_basic 
____________________
[  125s] 
[  125s] self = <test_arraydatatype.TestCoreDatatype 
testMethod=test_buffer_api_basic>
[  125s] 
[  125s]     @pytest.mark.skipif( not (
[  125s]         OpenGL.USE_ACCELERATE and 
acceleratesupport.ACCELERATE_AVAILABLE
[  125s]     ), reason="Need OpenGL_accelerate for buffer support")
[  125s]     def test_buffer_api_basic(self):
[  125s]         import array as silly_array
[  125s]         structures = [
[  125s]             (b'this and that',13,1,True,1,b'B',[13],[1]),
[  125s]         ]
[  125s]         if sys.version_info[:2] >= (2,7):
[  125s]             structures.append(
[  125s]                 # on Python 3.4 we do *not* get the (3) prefix :(
[  125s]                 ((GLint * 3)( 1,2,3 
),12,4,False,1,[b'(3)<i',b'(3)<l',b'<i'],[3],None),
[  125s]             )
[  125s]     
[  125s]         if sys.version_info[:2] >= (3,0):
[  125s]             # only supports buffer protocol in 3.x
[  125s]             structures.extend([
[  125s]                 
(silly_array.array('I',[1,2,3]),12,4,False,1,b'I',[3],[4]),
[  125s]             ])
[  125s]         try:
[  125s]             structures.append( 
(memoryview(b'this'),4,1,True,1,b'B',[4],[1]) )
[  125s]         except NameError:
[  125s]             # Python 2.6 doesn't have memory view
[  125s]             pass
[  125s]         try:
[  125s]             if array:
[  125s]                 structures.extend( [
[  125s]                     
(arange(0,9,dtype='I').reshape((3,3)),36,4,False,2,b'I',[3,3],[12,4]),
[  125s]                     
(arange(0,9,dtype='I').reshape((3,3))[:,1],12,4,False,1,b'I',[3],[12]),
[  125s]                 ])
[  125s]         except NameError:
[  125s]             # Don't have numpy installed...
[  125s]             pass
[  125s]     
[  125s]         from OpenGL.arrays import _buffers
[  125s]         for object,length,itemsize,readonly,ndim,format,shape,strides 
in structures:
[  125s]             buf = _buffers.Py_buffer.from_object( object, 
_buffers.PyBUF_STRIDES|_buffers.PyBUF_FORMAT )
[  125s]             with buf:
[  125s]                 assert buf.len == length, (object,length,buf.len)
[  125s]                 assert buf.itemsize == itemsize, 
(object,itemsize,buf.itemsize)
[  125s]                 assert buf.readonly == readonly, 
(object,readonly,buf.readonly)
[  125s]                 assert buf.ndim == ndim, (object,ndim,buf.ndim)
[  125s]                 if isinstance( format, list):
[  125s] >                   assert buf.format in format, 
(object,format,buf.format)
[  125s] E                   AssertionError: 
(<test_arraydatatype.c_long_Array_3 object at 0xa8c4f14c>, ['(3)<i', '(3)<l', 
'<i'], '<l')
[  125s] E                   assert '<l' in ['(3)<i', '(3)<l', '<i']
[  125s] E                    +  where '<l' = <OpenGL.arrays._buffers.Py_buffer 
object at 0xa8c4f854>.format
[  125s] 
[  125s] tests/test_arraydatatype.py:245: AssertionError

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840575

Title:
  numpy tests fail on openSUSE i586 and armv7l

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyopengl/+bug/1840575/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to