New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop Python 3.6, test on 3.11 #419
Conversation
- qt-lib: pyside6 | ||
os: macos-latest | ||
os: ubuntu-20.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff here is a bit confusing.
- Dropped the Python 3.6 macOS exclude (not testing there anymore)
- Kept the existing Python 3.7 macOS exclude
- Added a new Python 3.7 Linux exclude: issue comment
- Added a new Python 3.11 PySide6 exclude (pip refuses to install the wheel)
- ditto for PySide2 on Python 3.11 on Windows
xfail_py311_pyside2 = pytest.mark.xfail( | ||
sys.version_info[:2] == (3, 11) and qt_api.pytest_qt_api == "pyside2", | ||
reason="Fails to OR mask flags", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is a PySide2 or Python 3.11 bug:
>>> int(QtCore.Qt.AlignmentFlag.AlignHorizontal_Mask | QtCore.Qt.AlignmentFlag.AlignVertical_Mask)
TypeError: 'PySide2.QtCore.Qt.AlignmentFlag' object cannot be interpreted as an integer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: <class 'int'> returned a result with an exception set
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This XPASS
es for me on openSUSE Python 3.11.3 and PySide2 5.15.10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bnavigator Thanks, #497 should help.
https://build.opensuse.org/request/show/1095240 by user mcepl + dimstar_suse Forwarded request #1094952 from bnavigator - Remove xfail_strict from pytest config * pyside2 and py311 XPASS a test, gh#pytest-dev/pytest-qt#419
Seems to be fixed somewhere between: - PySide2 5.15.2.1 (latest version on PyPI) - PySide2 5.15.10 (version I have installed via Archlinux) But no idea where exactly, so let's just try it out at import time. See pytest-dev#419 (comment)
Seems to be fixed somewhere between: - PySide2 5.15.2.1 (latest version on PyPI) - PySide2 5.15.10 (version I have installed via Archlinux) But no idea where exactly, so let's just try it out at import time. See pytest-dev#419 (comment)
Seems to be fixed somewhere between: - PySide2 5.15.2.1 (latest version on PyPI) - PySide2 5.15.10 (version I have installed via Archlinux) But no idea where exactly, so let's just try it out at import time. See #419 (comment)
Needed to get the CI green again.