control: tags -1 patch pending.
Patch following:
diff -Nru pytest-qt-2.3.1/debian/changelog pytest-qt-2.3.1/debian/changelog --- pytest-qt-2.3.1/debian/changelog 2018-02-15 22:03:31.000000000 +0100 +++ pytest-qt-2.3.1/debian/changelog 2018-09-27 12:40:39.000000000 +0200 @@ -1,3 +1,12 @@ +pytest-qt (2.3.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + [ Dmitry Shachnev ] + * Adapt for QTest.mouseEvent removing in PyQt v5.11. + (Closes: #906400) + + -- Gianfranco Costamagna <locutusofb...@debian.org> Thu, 27 Sep 2018 12:40:39 +0200 + pytest-qt (2.3.1-1) unstable; urgency=medium [ Ondřej Nový ] diff -Nru pytest-qt-2.3.1/debian/patches/Remove-mouseEvent-proxy-method.patch pytest-qt-2.3.1/debian/patches/Remove-mouseEvent-proxy-method.patch --- pytest-qt-2.3.1/debian/patches/Remove-mouseEvent-proxy-method.patch 1970-01-01 01:00:00.000000000 +0100 +++ pytest-qt-2.3.1/debian/patches/Remove-mouseEvent-proxy-method.patch 2018-09-27 12:40:36.000000000 +0200 @@ -0,0 +1,45 @@ +From: Dmitry Shachnev <mity...@debian.org> +Date: Thu, 12 Jul 2018 15:59:53 +0300 +Subject: Remove mouseEvent proxy method + +QTest::mouseEvent is an internal Qt function, and it was removed in +PyQt v5.11 which is causing test failures. + +Forwarded: https://github.com/pytest-dev/pytest-qt/pull/219 +--- + pytestqt/qtbot.py | 2 -- + tests/test_qtest_proxies.py | 1 - + 2 files changed, 3 deletions(-) + +diff --git a/pytestqt/qtbot.py b/pytestqt/qtbot.py +index 7333f93..080dbc6 100644 +--- a/pytestqt/qtbot.py ++++ b/pytestqt/qtbot.py +@@ -96,7 +96,6 @@ class QtBot(object): + + .. staticmethod:: mouseClick (widget, button[, stateKey=0[, pos=QPoint()[, delay=-1]]]) + .. staticmethod:: mouseDClick (widget, button[, stateKey=0[, pos=QPoint()[, delay=-1]]]) +- .. staticmethod:: mouseEvent (action, widget, button, stateKey, pos[, delay=-1]) + .. staticmethod:: mouseMove (widget[, pos=QPoint()[, delay=-1]]) + .. staticmethod:: mousePress (widget, button[, stateKey=0[, pos=QPoint()[, delay=-1]]]) + .. staticmethod:: mouseRelease (widget, button[, stateKey=0[, pos=QPoint()[, delay=-1]]]) +@@ -549,7 +548,6 @@ class QtBot(object): + + 'mouseClick', + 'mouseDClick', +- 'mouseEvent', + 'mouseMove', + 'mousePress', + 'mouseRelease', +diff --git a/tests/test_qtest_proxies.py b/tests/test_qtest_proxies.py +index 715f20f..980841f 100644 +--- a/tests/test_qtest_proxies.py ++++ b/tests/test_qtest_proxies.py +@@ -18,7 +18,6 @@ fails_on_pyqt = pytest.mark.xfail('not qt_api.pytest_qt_api.startswith("pyside") + + 'mouseClick', + 'mouseDClick', +- 'mouseEvent', + 'mouseMove', + 'mousePress', + 'mouseRelease', diff -Nru pytest-qt-2.3.1/debian/patches/series pytest-qt-2.3.1/debian/patches/series --- pytest-qt-2.3.1/debian/patches/series 2018-02-15 22:03:31.000000000 +0100 +++ pytest-qt-2.3.1/debian/patches/series 2018-09-27 12:40:36.000000000 +0200 @@ -1 +1,2 @@ Skip-tests-requiring-a-window-manager.patch +Remove-mouseEvent-proxy-method.patch
_______________________________________________ Python-modules-team mailing list Python-modules-team@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team