Merge "Fix common/test_utils.py on Python 3.5.4+"

This commit is contained in:
Zuul 2018-06-20 03:15:49 +00:00 committed by Gerrit Code Review
commit 1cd6416471
1 changed files with 2 additions and 5 deletions

View File

@ -1626,13 +1626,10 @@ class TestUtils(unittest.TestCase):
'log_facility': 'LOG_LOCAL3',
'log_address': '/foo/bar',
}, 'server', log_route='server')
self.assertEqual([
self.assertEqual(
((), {'address': '/foo/bar',
'facility': orig_sysloghandler.LOG_LOCAL3}),
# Second call is because /foo/bar didn't exist (and wasn't a
# UNIX domain socket).
((), {'facility': orig_sysloghandler.LOG_LOCAL3})],
syslog_handler_args)
syslog_handler_args[0])
# Using UDP with default port
syslog_handler_args = []