Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions moler/asyncio_runner.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/crt/test_unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions test/crt/test_unix_no_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down