From dd537c91190dc7e395e57287579253cbf21d278b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 5 Oct 2016 10:12:38 +0200 Subject: [PATCH] Really fix test_mthml --- tests/unit/browser/webkit/test_mhtml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit/browser/webkit/test_mhtml.py b/tests/unit/browser/webkit/test_mhtml.py index a87b1ad56..3b33857e9 100644 --- a/tests/unit/browser/webkit/test_mhtml.py +++ b/tests/unit/browser/webkit/test_mhtml.py @@ -275,7 +275,8 @@ def test_empty_content_type(checker): def test_css_url_scanner(monkeypatch, has_cssutils, inline, style, expected_urls): if not has_cssutils: - monkeypatch.setattr('qutebrowser.browser.webkit.mhtml.cssutils', None) + monkeypatch.setattr(mhtml, '_get_css_imports_cssutils', + lambda data, inline=False: None) expected_urls.sort() urls = mhtml._get_css_imports(style, inline=inline) urls.sort()