diff --git a/moler/asyncio_runner.py b/moler/asyncio_runner.py index bfaf629bd..8a3b8b968 100644 --- a/moler/asyncio_runner.py +++ b/moler/asyncio_runner.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2018 Nokia +# Copyright (C) 2018-2026 Nokia """ Asyncio Runner """ -__author__ = 'Grzegorz Latuszek' -__copyright__ = 'Copyright (C) 2018, Nokia' -__email__ = 'grzegorz.latuszek@nokia.com' +__author__ = 'Grzegorz Latuszek, Marcin Usielski' +__copyright__ = 'Copyright (C) 2018-2026, Nokia' +__email__ = 'grzegorz.latuszek@nokia.com, marcin.usielski@nokia.com' # pylint: skip-file @@ -106,11 +106,6 @@ def stop(self): super(LoudEventLoop, self).stop() -# class LoudEventLoopPolicy(asyncio.unix_events.DefaultEventLoopPolicy): -class LoudEventLoopPolicy(asyncio.DefaultEventLoopPolicy): - _loop_factory = LoudEventLoop - - def thread_secure_get_event_loop(logger_name="moler.runner.asyncio"): """ Need securing since asyncio.get_event_loop() when called from new thread diff --git a/test/crt/test_unix.py b/test/crt/test_unix.py index db6f12255..219f425e2 100644 --- a/test/crt/test_unix.py +++ b/test/crt/test_unix.py @@ -89,6 +89,7 @@ def test_echo(unix_terminal): def test_dmesg(unix_terminal): unix = unix_terminal cmd_dmesg = unix.get_cmd(cmd_name="dmesg") + cmd_dmesg.add_failure_exception(r"Failed to connect to system scope bus via local transport") ret = cmd_dmesg() assert 'LINES' in ret diff --git a/test/crt/test_unix_no_fork.py b/test/crt/test_unix_no_fork.py index 070957faa..67e3e9128 100644 --- a/test/crt/test_unix_no_fork.py +++ b/test/crt/test_unix_no_fork.py @@ -89,6 +89,7 @@ def test_echo(unix_terminal): def test_dmesg(unix_terminal): unix = unix_terminal cmd_dmesg = unix.get_cmd(cmd_name="dmesg") + cmd_dmesg.add_failure_exception(r"Failed to connect to system scope bus via local transport") ret = cmd_dmesg() assert 'LINES' in ret