From c56b950cc5ea7c4ed147a1515fc4ebb8f45cb04d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 18 Sep 2018 17:25:24 +0200 Subject: [PATCH] Don't open any error pages in test_invocations --- tests/end2end/test_invocations.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index 341088db8..0375554b8 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -65,9 +65,16 @@ def temp_basedir_env(tmpdir, short_tmpdir): runtime_dir.ensure(dir=True) runtime_dir.chmod(0o700) - (data_dir / 'qutebrowser' / 'state').write_text( - '[general]\nquickstart-done = 1\nbackend-warning-shown=1', - encoding='utf-8', ensure=True) + lines = [ + '[general]', + 'quickstart-done = 1', + 'backend-warning-shown = 1', + 'old-qt-warning-shown = 1', + 'webkit-warning-shown = 1', + ] + + state_file = data_dir / 'qutebrowser' / 'state' + state_file.write_text('\n'.join(lines), encoding='utf-8', ensure=True) env = { 'XDG_DATA_HOME': str(data_dir),