--- Begin Message ---
Package: src:pyopengl
Version: 3.1.6+dfsg-4
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12
pyopengl's autopkg tests fail with Python 3.12:
[...]
360s Testing with python3.12:
361s ============================= test session starts
==============================
361s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
361s rootdir: /tmp/autopkgtest.y3RSqi/autopkgtest_tmp
361s collected 66 items / 1 skipped
361s
362s tests/test_arraydatatype.py ..s..s....s.....
[ 24%]
364s tests/test_core.py ..............FFF.F...F...
[ 63%]
364s tests/test_evaluators.py ....F..
[ 74%]
364s tests/test_tess.py ...
[ 78%]
365s tests/test_textures.py .............
[ 98%]
365s tests/test_vbo_memusage.py s
[100%]
365s
365s =================================== FAILURES
===================================
365s ____________________ TestCore.test_glbufferparameter_create
____________________
365s
365s self = <OpenGL.platform.baseplatform.glGetBufferParameteriv object
at 0x7fd7f230f050>
365s args = (GL_ARRAY_BUFFER, GL_BUFFER_SIZE, c_int(-1)), named = {}
365s
365s def __call__( self, *args, **named ):
365s """Call self._finalCall, calling finalise() first if not
already called
365s
365s There's actually *no* reason to unpack and repack the
arguments,
365s but unfortunately I don't know of a Cython syntax to specify
365s that.
365s """
365s try:
365s > return self._finalCall( *args, **named )
365s E TypeError: 'NoneType' object is not callable
365s
365s /usr/lib/python3/dist-packages/OpenGL/latebind.py:43: TypeError
365s
365s During handling of the above exception, another exception occurred:
365s
365s self = <test_core.TestCore testMethod=test_glbufferparameter_create>
365s
365s def test_glbufferparameter_create(self):
365s if not glGenBuffers or not glGenVertexArrays:
365s return None
365s for create in [True,False]:
365s buffer = glGenBuffers(1)
365s vertex_array = glGenVertexArrays(1,buffer)
365s glBindBuffer(GL_ARRAY_BUFFER, buffer)
365s try:
365s for param, expected in [
365s (GL_BUFFER_SIZE,0),
365s (GL_BUFFER_MAPPED,GL_FALSE),
365s (GL_BUFFER_STORAGE_FLAGS,0),
365s (GL_BUFFER_USAGE,GL_STATIC_DRAW),
365s ]:
365s if create:
365s mapped = GLint(-1)
365s > glGetBufferParameteriv(GL_ARRAY_BUFFER,
param, mapped)
365s
365s tests/test_core.py:241:
365s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
365s /usr/lib/python3/dist-packages/OpenGL/latebind.py:47: in __call__
365s return self._finalCall( *args, **named )
365s /usr/lib/python3/dist-packages/OpenGL/wrapper.py:671: in wrapperCall
365s result = wrappedOperation( *cArguments )
365s /usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py:415:
in __call__
365s return self( *args, **named )
365s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
365s
365s self = <CFunctionType object at 0x7fd7f1fad0d0>
365s args = (GL_ARRAY_BUFFER, GL_BUFFER_SIZE, <cparam 'P' (0x7fd7f2019d20)>)
365s named = {}
365s
365s def __call__( self, *args, **named ):
365s if not self.ccisvalid():
365s from OpenGL import error
365s raise error.NoContext( self.func.__name__, args, named )
365s > return self.func( *args, **named )
365s E ctypes.ArgumentError: ("argument 3: TypeError: No
array-type handler for type _ctypes.CArgObject (value: <cparam 'P'
(0x7fd7f2019d20)>) registered", (GL_ARRAY_BUFFER, GL_BUFFER_SIZE,
<cparam 'P' (0x7fd7f2019d20)>))
365s
365s /usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py:41:
ArgumentError
365s
365s During handling of the above exception, another exception occurred:
365s
365s self = <OpenGL.platform.baseplatform.glDeleteVertexArrays object at
0x7fd7f23772d0>
365s args = (1, c_uint(1)), named = {}
365s
365s def __call__( self, *args, **named ):
365s """Call self._finalCall, calling finalise() first if not
already called
365s
365s There's actually *no* reason to unpack and repack the
arguments,
365s but unfortunately I don't know of a Cython syntax to specify
365s that.
365s """
365s try:
365s > return self._finalCall( *args, **named )
365s E TypeError: 'NoneType' object is not callable
365s
365s /usr/lib/python3/dist-packages/OpenGL/latebind.py:43: TypeError
365s
365s During handling of the above exception, another exception occurred:
365s
365s self = <test_core.TestCore testMethod=test_glbufferparameter_create>
365s
365s def test_glbufferparameter_create(self):
365s if not glGenBuffers or not glGenVertexArrays:
365s return None
365s for create in [True,False]:
365s buffer = glGenBuffers(1)
365s vertex_array = glGenVertexArrays(1,buffer)
365s glBindBuffer(GL_ARRAY_BUFFER, buffer)
365s try:
365s for param, expected in [
365s (GL_BUFFER_SIZE,0),
365s (GL_BUFFER_MAPPED,GL_FALSE),
365s (GL_BUFFER_STORAGE_FLAGS,0),
365s (GL_BUFFER_USAGE,GL_STATIC_DRAW),
365s ]:
365s if create:
365s mapped = GLint(-1)
365s glGetBufferParameteriv(GL_ARRAY_BUFFER,
param, mapped)
365s assert mapped.value == expected, (param,
mapped, expected)
365s else:
365s mapped =
glGetBufferParameteriv(GL_ARRAY_BUFFER, param)
365s if param == GL_BUFFER_USAGE:
365s assert mapped[0] == expected, (param,
mapped, expected)
365s else:
365s if OpenGL.SIZE_1_ARRAY_UNPACK:
365s assert mapped == expected, (param,
mapped, expected)
365s else:
365s assert mapped[0] == expected,
(param, mapped[0], expected)
365s finally:
365s glBindBuffer(GL_ARRAY_BUFFER, 0)
365s > glDeleteVertexArrays(1,vertex_array)
365s
365s tests/test_core.py:254:
365s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
365s /usr/lib/python3/dist-packages/OpenGL/latebind.py:47: in __call__
365s return self._finalCall( *args, **named )
365s /usr/lib/python3/dist-packages/OpenGL/wrapper.py:693: in wrapperCall
365s result = wrappedOperation( *cArguments )
365s /usr/lib/python3/dist-packages/OpenGL/platform/baseplatform.py:415:
in __call__
365s return self( *args, **named )
365s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
365s
365s self = <CFunctionType object at 0x7fd7f1faf290>
365s args = (1, <cparam 'P' (0x7fd7f2019e20)>), named = {}
365s
365s def __call__( self, *args, **named ):
365s if not self.ccisvalid():
365s from OpenGL import error
365s raise error.NoContext( self.func.__name__, args, named )
365s > return self.func( *args, **named )
365s E ctypes.ArgumentError: ("argument 2: TypeError: No
array-type handler for type _ctypes.CArgObject (value: <cparam 'P'
(0x7fd7f2019e20)>) registered", (1, <cparam 'P' (0x7fd7f2019e20)>))
365s
--- End Message ---