mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +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:
parent
45b5de65d1
commit
4098c0623b
@ -13,6 +13,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from nose.tools import assert_equal, assert_true, assert_false
|
from nose.tools import assert_equal, assert_true, assert_false
|
||||||
@ -31,6 +32,11 @@ class Callable(object):
|
|||||||
|
|
||||||
class TestPriorityDispatcher(unittest.TestCase):
|
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):
|
def test_ConnectNotify(self):
|
||||||
one = Callable(1)
|
one = Callable(1)
|
||||||
two = Callable(2)
|
two = Callable(2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user