projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccb0ca4
)
tests: avoid calling GLib.IOChannel.unix_new()
author
Lubomir Rintel
<lkundrak@v3.sk>
Fri, 15 May 2015 17:33:32 +0000
(19:33 +0200)
committer
Lubomir Rintel
<lkundrak@v3.sk>
Tue, 2 Jun 2015 10:30:03 +0000
(12:30 +0200)
The Ubuntu 12.04 introspection data don't contain it. However, the default
constructor works just well and even looks a bit more Python-y.
tools/test-networkmanager-service.py
patch
|
blob
|
history
diff --git
a/tools/test-networkmanager-service.py
b/tools/test-networkmanager-service.py
index
50803c8
..
6035fec
100755
(executable)
--- a/
tools/test-networkmanager-service.py
+++ b/
tools/test-networkmanager-service.py
@@
-1148,7
+1148,7
@@
def main():
sys.exit(1)
# Watch stdin; if it closes, assume our parent has crashed, and exit
- io = GLib.IOChannel
.unix_new
(0)
+ io = GLib.IOChannel(0)
io.add_watch(GLib.IOCondition.HUP, stdin_cb)
# also quit after inactivity to ensure we don't stick around if the above fails somehow