Accepting request 656134 from home:TheBlackCat:branches:devel:languages:python:pytest

Update to version 3.2.1
Fixes build errors

OBS-URL: https://build.opensuse.org/request/show/656134
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-qt?expand=0&rev=4
This commit is contained in:
Todd R 2018-12-07 19:25:44 +00:00 committed by Git OBS Bridge
parent c967b08bc0
commit 9697dcef53
5 changed files with 55 additions and 11 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ea4d36e4783de227494cca75bd2d2850e96629cd70b24f435a616fe59d55166
size 110499

3
pytest-qt-3.2.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c94dc1ca0f3e12651a9a3eddea9e55130b6e246a9714acb4baeeeb5be8a5cffb
size 114557

View File

@ -1,3 +1,47 @@
-------------------------------------------------------------------
Fri Dec 7 19:04:18 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Update to version 3.2.1
* Fixed compatibility with PyQt5 5.11.3
- Update to version 3.2.0
* The ``CallbackBlocker`` returned by ``qtbot.waitCallback()`` now has a new
``assert_called_with(...)`` convenience method.
- Update to version 3.1.0
* If Qt's model tester implemented in C++ is available (PyQt5 5.11 or newer),
the ``qtmodeltester`` fixture now uses that instead of the Python
implementation. This can be turned off by passing ``force_py=True`` to
``qtmodeltester.check()``.
* The Python code used by ``qtmodeltester`` is now based on the latest Qt
modeltester. This also means that the ``data_display_may_return_none``
attribute for ``qtmodeltester`` isn't used anymore.
* New ``qtbot.waitCallback()`` method that returns a ``CallbackBlocker``, which
can be used to wait for a callback to be called.
* ``qtbot.assertNotEmitted`` now has a new ``wait`` parameter which can be used
to make sure asynchronous signals aren't emitted by waiting after the code in
the ``with`` block finished.
* The ``qt_wait_signal_raising`` option was renamed to ``qt_default_raising``.
The old name continues to work, but is deprecated.
* The docs still referred to ``SignalTimeoutError`` in some places, despite it
being renamed to ``TimeoutError`` in the 2.1 release. This is now corrected.
* Improve debugging output when no Qt wrapper was found.
* When no context is available for warnings on Qt 5, no ``None:None:0`` line is
shown anymore.
* The ``no_qt_log`` marker is now registered with pytest so ``--strict`` can be
used.
* ``qtbot.waitSignal`` with timeout ``0`` now expects the signal to arrive
directly in the code enclosed by it.
- Update to version 3.0.2
* Another fix related to ``QtInfoMsg`` objects during logging (`#225`_).
- Update to version 3.0.1
* Fix handling of ``QtInfoMsg`` objects during logging (`#225`_).
Thanks `@willsALMANJ`_ for the report.
- Update to version 3.0.0
* Removed ``qtbot.mouseEvent`` proxy, it was an internal Qt function which has
now been removed in PyQt 5.11 (`#219`_). Thanks `@mitya57`_ for the PR.
* Fix memory leak when tests raised an exception inside Qt virtual methods (`#187`_).
Thanks `@fabioz`_ for the report and PR.
- Rebase skip-timeout-tests.patch
-------------------------------------------------------------------
Thu May 31 16:01:42 UTC 2018 - toddrme2178@gmail.com

View File

@ -12,13 +12,13 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-qt
Version: 2.4.0
Version: 3.2.1
Release: 0
Summary: Pytest support for PyQt and PySide applications
License: MIT

View File

@ -1,11 +1,11 @@
Index: pytest-qt-2.3.1/tests/test_basics.py
Index: pytest-qt-3.2.1/tests/test_basics.py
===================================================================
--- pytest-qt-2.3.1.orig/tests/test_basics.py
+++ pytest-qt-2.3.1/tests/test_basics.py
@@ -73,6 +73,7 @@ def test_stop_for_interaction(qtbot, tim
--- pytest-qt-3.2.1.orig/tests/test_basics.py
+++ pytest-qt-3.2.1/tests/test_basics.py
@@ -84,6 +84,7 @@ def test_stop_for_interaction(qtbot, tim
@pytest.mark.parametrize('show', [True, False])
@pytest.mark.parametrize('method_name', ['waitExposed', 'waitActive'])
@pytest.mark.parametrize("show", [True, False])
@pytest.mark.parametrize("method_name", ["waitExposed", "waitActive"])
+@pytest.mark.skip(reason="Fails in OBS randomly")
def test_wait_window(show, method_name, qtbot):
"""