From 964b06bf7e1a5412b6cf411436d4ee9363d36457 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 19 May 2017 09:26:48 +0200 Subject: [PATCH] Fix shadowed import --- tests/unit/utils/test_urlutils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit/utils/test_urlutils.py b/tests/unit/utils/test_urlutils.py index 3ea23f521..306f30cd7 100644 --- a/tests/unit/utils/test_urlutils.py +++ b/tests/unit/utils/test_urlutils.py @@ -30,7 +30,7 @@ import pytest from qutebrowser.commands import cmdexc from qutebrowser.browser.network import pac from qutebrowser.utils import utils, urlutils, qtutils, usertypes -from helpers import utils +from helpers import utils as testutils class FakeDNS: @@ -756,10 +756,10 @@ def test_data_url(): (QUrl('http://www.example.xn--p1ai'), '(www.example.xn--p1ai) http://www.example.рф'), # https://bugreports.qt.io/browse/QTBUG-60364 - utils.qt58((QUrl('http://www.xn--80ak6aa92e.com'), - '(unparseable URL!) http://www.аррӏе.com')), - utils.qt59((QUrl('http://www.xn--80ak6aa92e.com'), - 'http://www.xn--80ak6aa92e.com')), + testutils.qt58((QUrl('http://www.xn--80ak6aa92e.com'), + '(unparseable URL!) http://www.аррӏе.com')), + testutils.qt59((QUrl('http://www.xn--80ak6aa92e.com'), + 'http://www.xn--80ak6aa92e.com')), ]) def test_safe_display_string(url, expected): assert urlutils.safe_display_string(url) == expected