From 5fb6d2646595dfc6870b0d34a93e004320cc9d6a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 6 Mar 2017 06:28:26 +0100 Subject: [PATCH] Stabilize some tests --- tests/end2end/features/marks.feature | 2 +- tests/unit/misc/test_guiprocess.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/end2end/features/marks.feature b/tests/end2end/features/marks.feature index 82ded0746..e2738e23f 100644 --- a/tests/end2end/features/marks.feature +++ b/tests/end2end/features/marks.feature @@ -70,7 +70,7 @@ Feature: Setting positional marks And I run :jump-mark b Then the error "Mark b is not set" should be shown - @qtwebengine_todo: Does not emit loaded signal for fragments? + @qtwebengine_todo: Does not emit loaded signal for fragments? @flaky Scenario: Jumping to a local mark after changing fragments When I open data/marks.html#top And I run :scroll 'top' diff --git a/tests/unit/misc/test_guiprocess.py b/tests/unit/misc/test_guiprocess.py index 4341284df..865e91a84 100644 --- a/tests/unit/misc/test_guiprocess.py +++ b/tests/unit/misc/test_guiprocess.py @@ -205,8 +205,7 @@ def test_exit_unsuccessful_output(qtbot, proc, caplog, py_proc, stream): print("test", file=sys.{}) sys.exit(1) """.format(stream))) - assert len(caplog.records) == 2 - assert caplog.records[1].msg == 'Process {}:\ntest'.format(stream) + assert caplog.records[-1].msg == 'Process {}:\ntest'.format(stream) @pytest.mark.parametrize('stream', ['stdout', 'stderr'])