Skip to content

Commit 668bd59

Browse files
Deleted unused code
1 parent 3333b3c commit 668bd59

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

moler/asyncio_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def stop(self):
107107

108108

109109
# class LoudEventLoopPolicy(asyncio.unix_events.DefaultEventLoopPolicy):
110-
# DefaultEventLoopPolicy is deprecated in Python 3.14 and plant to remove in 3.16+
110+
# DefaultEventLoopPolicy is deprecated in Python 3.14 and planed to remove in 3.16
111111
# Use platform-specific event loop policy as base class
112112
if sys.platform == 'win32':
113113
_BaseEventLoopPolicy = asyncio.WindowsProactorEventLoopPolicy
@@ -121,7 +121,7 @@ def stop(self):
121121

122122

123123
class LoudEventLoopPolicy(_BaseEventLoopPolicy):
124-
_loop_factory = LoudEventLoop
124+
_loop_factory = LoudEventLoop
125125

126126

127127
def thread_secure_get_event_loop(logger_name="moler.runner.asyncio"):

test/crt/test_unix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test_echo(unix_terminal):
8989
def test_dmesg(unix_terminal):
9090
unix = unix_terminal
9191
cmd_dmesg = unix.get_cmd(cmd_name="dmesg")
92+
cmd_dmesg.add_failure_exception(r"Failed to connect to system scope bus via local transport")
9293
ret = cmd_dmesg()
9394
assert 'LINES' in ret
9495

test/crt/test_unix_no_fork.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test_echo(unix_terminal):
8989
def test_dmesg(unix_terminal):
9090
unix = unix_terminal
9191
cmd_dmesg = unix.get_cmd(cmd_name="dmesg")
92+
cmd_dmesg.add_failure_exception(r"Failed to connect to system scope bus via local transport")
9293
ret = cmd_dmesg()
9394
assert 'LINES' in ret
9495

0 commit comments

Comments
 (0)