Stabilize some tests

This commit is contained in:
Florian Bruhin 2017-03-06 06:28:26 +01:00
parent b117d981a5
commit 5fb6d26465
2 changed files with 2 additions and 3 deletions

View File

@ -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'

View File

@ -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'])