1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

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.
This commit is contained in:
Sergei Trofimov 2018-07-05 10:33:41 +01:00 committed by Marc Bonnici
parent 45b5de65d1
commit 4098c0623b

View File

@ -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)