summaryrefslogtreecommitdiff
path: root/dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch')
-rw-r--r--dev-python/pytest-qt/files/pytest-qt-3.3.0-skip-show-window-test.patch36
1 files changed, 36 insertions, 0 deletions
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):
+ """