From d42200bec37eef2a7478d88988ff00addd0a9202 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Jan 2020 11:50:47 +0000 Subject: gentoo resync : 25.01.2020 --- .../pytest-qt-3.3.0-skip-show-window-test.patch | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch (limited to 'dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch') diff --git a/dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch b/dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch new file mode 100644 index 000000000000..1acef2bb4922 --- /dev/null +++ b/dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch @@ -0,0 +1,36 @@ +diff --git a/tests/test_basics.py b/tests/test_basics.py +index 7fdaf93..a972ea0 100644 +--- a/tests/test_basics.py ++++ b/tests/test_basics.py +@@ -82,31 +82,6 @@ def test_stop_for_interaction(qtbot, timer): + qtbot.stopForInteraction() + + +-@pytest.mark.parametrize("show", [True, False]) +-@pytest.mark.parametrize("method_name", ["waitExposed", "waitActive"]) +-def test_wait_window(show, method_name, qtbot): +- """ +- Using one of the wait-widget methods should not raise anything if the widget +- is properly displayed, otherwise should raise a TimeoutError. +- """ +- method = getattr(qtbot, method_name) +- if qt_api.pytest_qt_api != "pyqt5": +- with pytest.raises(RuntimeError) as exc_info: +- with method(None, None): +- pass +- assert str(exc_info.value) == "Available in PyQt5 only" +- else: +- widget = qt_api.QWidget() +- qtbot.add_widget(widget) +- if show: +- with method(widget, timeout=1000): +- widget.show() +- else: +- with pytest.raises(qtbot.TimeoutError): +- with method(widget, timeout=100): +- pass +- +- + @pytest.mark.parametrize("method_name", ["waitExposed", "waitActive"]) + def test_wait_window_propagates_other_exception(method_name, qtbot): + """ -- cgit v1.2.3