[gnome-control-center/wip/benzea/ci-network: 12/17] tests/network: Fix deprecation warning in NM test service



commit 466d91afd3af3893fa556e38ed54c2a7f0144def
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Apr 4 22:41:43 2018 +0200

    tests/network: Fix deprecation warning in NM test service
    
    This just fixes a simple deprecation warning in the NetworkManager test
    service.

 tests/network/nm-utils/test-networkmanager-service.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/network/nm-utils/test-networkmanager-service.py 
b/tests/network/nm-utils/test-networkmanager-service.py
index 0dca42733..9dd95bb77 100755
--- a/tests/network/nm-utils/test-networkmanager-service.py
+++ b/tests/network/nm-utils/test-networkmanager-service.py
@@ -1428,7 +1428,7 @@ def main():
 
     # Watch stdin; if it closes, assume our parent has crashed, and exit
     io = GLib.IOChannel(0)
-    io.add_watch(GLib.IOCondition.HUP, stdin_cb)
+    GLib.io_add_watch(io, GLib.PRIORITY_LOW, GLib.IOCondition.HUP, stdin_cb)
 
     # also quit after inactivity to ensure we don't stick around if the above fails somehow
     GLib.timeout_add_seconds(20, quit_cb, None)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]