Operating system: Ubuntu on GitHub Action
wxPython version & source: wxPython 4.2.1 source retrieved from pypi
Python version & source: Ubuntu runner, Python version 3.x which is 3.12.2
Description of the problem:
If pytest is run with a test that does import wx in GitHub actions it will crash on exit. Bisecting reveals that it only needs to include wx to make it crash. Take the import away and it works fine. Moreover, changing python to 3.11 and it will pass just fine. This is most probably related to #2479
============================= test session starts ==============================
platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/runner/work/gh-fail-wxwidgets/gh-fail-wxwidgets
configfile: pyproject.toml
testpaths: tests
plugins: cov-5.0.0
collected 2 items
tests/test_wx.py .. [100%]
---------- coverage: platform linux, python 3.12.2-final-0 -----------
Coverage XML written to file coverage.xml
============================== 2 passed in 0.63s ===============================
/home/runner/work/_temp/bc8b47c5-9781-42c2-8b9c-5383d1e7a7.sh: line 1: 2405 Segmentation fault (core dumped)
This is demoed in repo: https://github.com/sveinse/gh-fail-wxwidgets that showcases the code and workflows that makes this fail. It sets up a very small python package that depends on wxPython and runs a very small pytest that imports wx. The master branch showcase using python 3.x which at the time is 3.12.2, while the py3.11 branch runs 3.11.8 and works fine. The repo use Actions that shows the failure and success.
Operating system: Ubuntu on GitHub Action wxPython version & source: wxPython 4.2.1 source retrieved from pypi Python version & source: Ubuntu runner, Python version 3.x which is 3.12.2
Description of the problem:
If
pytest
is run with a test that doesimport wx
in GitHub actions it will crash on exit. Bisecting reveals that it only needs toinclude wx
to make it crash. Take the import away and it works fine. Moreover, changing python to 3.11 and it will pass just fine. This is most probably related to #2479This is demoed in repo: https://github.com/sveinse/gh-fail-wxwidgets that showcases the code and workflows that makes this fail. It sets up a very small python package that depends on wxPython and runs a very small pytest that imports wx. The master branch showcase using python
3.x
which at the time is 3.12.2, while the py3.11 branch runs 3.11.8 and works fine. The repo use Actions that shows the failure and success.