From ca01e55d77abf867158ed29b32b71cb75e33a878 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 29 Jul 2014 16:06:40 +0200 Subject: [PATCH] log: make tests portable There's no need to specify the address of the logger, and it actually breaks the portability of the tests. With this patch, the tests also work on Darwin. Change-Id: Iae3fae1e089fd6ea03ac078a093f0c80a2988788 --- tests/unit/test_log.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_log.py b/tests/unit/test_log.py index 08f22683..1cf76f94 100644 --- a/tests/unit/test_log.py +++ b/tests/unit/test_log.py @@ -184,11 +184,9 @@ class SysLogHandlersTestCase(test_base.BaseTestCase): def setUp(self): super(SysLogHandlersTestCase, self).setUp() self.facility = logging.handlers.SysLogHandler.LOG_USER - self.rfclogger = log.RFCSysLogHandler(address='/dev/log', - facility=self.facility) + self.rfclogger = log.RFCSysLogHandler(facility=self.facility) self.rfclogger.binary_name = 'Foo_application' - self.logger = logging.handlers.SysLogHandler(address='/dev/log', - facility=self.facility) + self.logger = logging.handlers.SysLogHandler(facility=self.facility) self.logger.binary_name = 'Foo_application' def test_rfc_format(self):