From fc19262eaa953c6240f0756930df88e85fe5700b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 24 Jun 2018 22:31:27 +0200 Subject: [PATCH] Fix test_shared.py --- tests/unit/browser/test_shared.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/browser/test_shared.py b/tests/unit/browser/test_shared.py index f24f7ad97..78302d8c1 100644 --- a/tests/unit/browser/test_shared.py +++ b/tests/unit/browser/test_shared.py @@ -19,6 +19,8 @@ import pytest +from PyQt5.QtCore import QUrl + from qutebrowser.browser import shared @@ -47,4 +49,4 @@ def test_custom_headers(config_stub, dnt, accept_language, custom_headers, headers.custom = custom_headers expected_items = sorted(expected.items()) - assert shared.custom_headers() == expected_items + assert shared.custom_headers(QUrl()) == expected_items