git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Cleanup test-daemon.py style.
[sliver-openvswitch.git]
/
tests
/
test-daemon.py
diff --git
a/tests/test-daemon.py
b/tests/test-daemon.py
index
350b8f7
..
816304f
100644
(file)
--- a/
tests/test-daemon.py
+++ b/
tests/test-daemon.py
@@
-21,9
+21,11
@@
import time
import ovs.daemon
import ovs.util
import ovs.daemon
import ovs.util
-def handler(signum, frame):
+
+def handler(signum, _):
raise Exception("Signal handler called with %d" % signum)
raise Exception("Signal handler called with %d" % signum)
+
def main(argv):
logging.basicConfig(level=logging.DEBUG)
def main(argv):
logging.basicConfig(level=logging.DEBUG)
@@
-57,6
+59,7
@@
def main(argv):
while True:
time.sleep(1)
while True:
time.sleep(1)
+
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python
def usage():
sys.stdout.write("""\
%s: Open vSwitch daemonization test program for Python