Commit ceae05cc authored by Thomas Haller's avatar Thomas Haller

tests: avoid deprecated GLib.IOChannel.add_watch() in ""

test_001 (__main__.TestNmcli) ... /tmp/NetworkManager/tools/ PyGIDeprecationWarning: add_watch is deprecated; use GLib.io_add_watch() instead
  id1 = GLib.IOChannel(0).add_watch(GLib.IOCondition.HUP,
parent 85bdf421
......@@ -2343,7 +2343,9 @@ def main():
raise AssertionError("Failure to request D-Bus name org.freedesktop.NetworkManager")
# Watch stdin; if it closes, assume our parent has crashed, and exit
id1 = GLib.IOChannel(0).add_watch(GLib.IOCondition.HUP,
id1 = GLib.io_add_watch(GLib.IOChannel.unix_new(0),
lambda io, condition: gl.mainloop.quit() or True)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment