From dd125cd0be068c345be3acdf3982c2b4cbd26438 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 29 Jun 2014 22:14:46 +0200 Subject: [PATCH] Mock out logging instead of disabling in test_basekeyparser. --- qutebrowser/test/keyinput/test_basekeyparser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/test/keyinput/test_basekeyparser.py b/qutebrowser/test/keyinput/test_basekeyparser.py index 2500c447b..79bccd962 100644 --- a/qutebrowser/test/keyinput/test_basekeyparser.py +++ b/qutebrowser/test/keyinput/test_basekeyparser.py @@ -20,7 +20,6 @@ """Tests for BaseKeyParser.""" import unittest -import logging from unittest.mock import Mock import qutebrowser.keyinput.basekeyparser as basekeyparser @@ -40,7 +39,7 @@ CONFIG = {'test': {'': 'ctrla', def setUpModule(): """Mock out some imports in basekeyparser.""" basekeyparser.QObject = Mock() - logging.disable(logging.ERROR) + basekeyparser.logger = Mock() class NormalizeTests(unittest.TestCase):