arcade
arcade copied to clipboard
Headless fails on 3.0.0.dev31
When running tests in CI on headless mode, the following stack trace is thrown:
ImportError while loading conftest '/home/runner/work/Hades/Hades/tests/conftest.py'.
tests/conftest.py:25: in <module>
WINDOW: Final[Window] = Window()
.nox/tests-3-12/lib/python3.12/site-packages/arcade/application.py:208: in __init__
super().__init__(
.nox/tests-3-12/lib/python3.12/site-packages/pyglet/window/__init__.py:567: in __init__
self._create()
.nox/tests-3-12/lib/python3.12/site-packages/pyglet/window/headless/__init__.py:110: in _create
self.context.attach(self.canvas)
.nox/tests-3-12/lib/python3.12/site-packages/pyglet/gl/headless.py:131: in attach
super().attach(canvas)
.nox/tests-3-12/lib/python3.12/site-packages/pyglet/gl/base.py:266: in attach
raise RuntimeError(msg)
E RuntimeError: Cannot attach <pyglet.display.headless.HeadlessCanvas object at 0x7fce58069760> to HeadlessContext(id=140524185915456, share=None)
No code changes were made to these tests before the update to Arcade 3.0.0.dev31