Skip to content
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

Merged
merged 1 commit into from Apr 29, 2022
Merged

Conversation

The-Compiler
Copy link
Member

Needed to get the CI green again.

- qt-lib: pyside6
os: macos-latest
os: ubuntu-20.04
Copy link
Member Author

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",
)
Copy link
Member Author

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This XPASSes for me on openSUSE Python 3.11.3 and PySide2 5.15.10

Copy link
Member Author

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.

@The-Compiler The-Compiler merged commit de188ac into pytest-dev:master Apr 29, 2022
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jun 26, 2023
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
The-Compiler added a commit to The-Compiler/pytest-qt that referenced this pull request Jun 26, 2023
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)
The-Compiler added a commit to The-Compiler/pytest-qt that referenced this pull request Jun 26, 2023
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)
The-Compiler added a commit that referenced this pull request Jun 26, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants