diff options
author | Sergei Trofimov <sergei.trofimov@arm.com> | 2018-07-05 10:33:41 +0100 |
---|---|---|
committer | Marc Bonnici <marc.bonnici@arm.com> | 2018-07-05 10:36:57 +0100 |
commit | 4098c0623b5f55bfb2d735cd79f70602204c2c39 (patch) | |
tree | ea3a2933437615c10021799021e04a060fc40a81 /tests | |
parent | 45b5de65d1c39a659c4aa463ea2e1d1395368f8f (diff) |
tests: quieten signal logger
Set signal logger level to CRITICAL to prevent it from spewing out
log message on the console for expected errors during tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_signal.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_signal.py b/tests/test_signal.py index ed4597b6..48a14b15 100644 --- a/tests/test_signal.py +++ b/tests/test_signal.py @@ -13,6 +13,7 @@ # limitations under the License. # +import logging import unittest from nose.tools import assert_equal, assert_true, assert_false @@ -31,6 +32,11 @@ class Callable(object): class TestPriorityDispatcher(unittest.TestCase): + def setUp(self): + # Stop logger output interfering with nose output in the console. + logger = logging.getLogger('signal') + logger.setLevel(logging.CRITICAL) + def test_ConnectNotify(self): one = Callable(1) two = Callable(2) |