Restored compatibility with PySide2 5.11, which doesn't depend on the
shiboken2 project, used by pytest-qt 4.0.0. The dependency is now not
needed anymore, and the .isdeleted attribute of qt_compat (which
isn't intended for public use) is removed.
4.0.1 (2021-06-07)
The sip module now gets imported directly if PyQt5.sip /
PyQt6.sip wasn't found, as it's still packaged like that in some
distributions ([#369](https://github.com/pytest-dev/pytest-qt/issues/369)). Thanks @The-Compiler for the PR.
PySide6 <https://pypi.org/project/PySide6>__ and PyQt6 <https://pypi.org/project/PyQt6>__ (6.1+)
are now supported. Thanks @jensheilman_ and @The-Compiler_ for the PRs ([#328](https://github.com/pytest-dev/pytest-qt/issues/328), [#330](https://github.com/pytest-dev/pytest-qt/issues/330)).
pytest-qt now requires Python 3.6+.
When using PyQt5, pytest-qt now requires PyQt5 5.11 or newer ([#330](https://github.com/pytest-dev/pytest-qt/issues/330)_).
Support for Qt4 (i.e. PyQt4 and PySide) is now dropped ([#279](https://github.com/pytest-dev/pytest-qt/issues/279)_).
The qtbot.waitActive and qtbot.waitExposed context managers are now
available with all Qt APIs, rather than only PyQt5 ([#361](https://github.com/pytest-dev/pytest-qt/issues/361)). Thanks
@The-Compiler for the PR.
The qtbot.waitForWindowShown method is deprecated, as the underlying Qt
method was obsoleted in Qt 5.0 and removed in Qt 6.0. Its name is imprecise and
the pytest-qt wrapper does not raise TimeoutError if the window wasn't shown.
Please use the qtbot.waitExposed context manager instead ([#361](https://github.com/pytest-dev/pytest-qt/issues/361)). Thanks
@The-Compiler for the PR.
The old qtbot.stopForInteraction() name is now removed as it was
cumbersome and rarely used. Use qtbot.stop() (added in 1.1.1) instead
([#306](https://github.com/pytest-dev/pytest-qt/issues/306)). Thanks @The-Compiler for the PR.
The old SignalTimeoutError exception alias is now removed, as it was renamed to
TimeoutError in 2.1 ([#306](https://github.com/pytest-dev/pytest-qt/issues/306)). Thanks @The-Compiler for the PR.
The old qt_wait_signal_raising option is now removed, as it was renamed to
qt_default_raising in 3.1 ([#306](https://github.com/pytest-dev/pytest-qt/issues/306)). Thanks @The-Compiler for the PR.
qtbot.waitSignal and waitSignals (as well as their PEP-8 aliases)
supported passing None as signal, making them wait for the given timeout
instead. This is not supported anymore, use qtbot.wait(ms) instead
([#306](https://github.com/pytest-dev/pytest-qt/issues/306)). Thanks @The-Compiler for the PR.
Various arguments to qtbot methods are now keyword-only ([#366](https://github.com/pytest-dev/pytest-qt/issues/366)_):
qtbot.waitActive: timeout (widget being the only positional argument)
qtbot.waitExposed: timeout (widget being the only positional argument)
qtbot.waitSignal: timeout, raising and check_params_cb (signal being the only positional argument)
qtbot.waitSignals: timeout, raising and check_params_cbs (signals being the only positional argument)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bumps pytest-qt from 3.3.0 to 4.0.2.
Changelog
Sourced from pytest-qt's changelog.
... (truncated)
Commits
7fdf6c5
Release 4.0.2df3325d
Avoid using .isdeleted/.isValid in tests (#374)b638111
Merge pull request #375 from mara004/patch-149a2c86
Change duplicate PyQt6 to PySide69332f32
Merge pull request #372 from pytest-dev/pre-commit-ci-update-configfff73c6
[pre-commit.ci] pre-commit autoupdatedad7f23
Release v4.0.1175e59f
Fix sip import for distributions packaging it as sip (#370)f258f31
Release v4.0.0af3d4d6
Make wait* arguments kw-onlyDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)