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 21:03:31.000000000 +0000 +++ pytest-qt-2.3.1/debian/changelog 2018-07-12 13:31:19.000000000 +0000 @@ -1,3 +1,9 @@ +pytest-qt (2.3.1-1ubuntu1) cosmic; urgency=medium + + * Adapt for QTest.mouseEvent removing in PyQt v5.11. + + -- Dmitry Shachnev Thu, 12 Jul 2018 16:31:19 +0300 + 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 00:00:00.000000000 +0000 +++ pytest-qt-2.3.1/debian/patches/Remove-mouseEvent-proxy-method.patch 2018-07-12 13:31:19.000000000 +0000 @@ -0,0 +1,45 @@ +From: Dmitry Shachnev +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 21:03:31.000000000 +0000 +++ pytest-qt-2.3.1/debian/patches/series 2018-07-12 13:31:19.000000000 +0000 @@ -1 +1,2 @@ Skip-tests-requiring-a-window-manager.patch +Remove-mouseEvent-proxy-method.patch