X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-daemon.py;h=816304fa075df1102630c347c8bb918763438532;hb=9b46cccc33bedc8b4d538b159804b5b45b8b0ea7;hp=350b8f7031d363ffdbf2a7d17d5b2505ae0dec42;hpb=aacea8ba432bdffcca77696ba407be0c62661394;p=openvswitch diff --git a/tests/test-daemon.py b/tests/test-daemon.py index 350b8f70..816304fa 100644 --- a/tests/test-daemon.py +++ b/tests/test-daemon.py @@ -21,9 +21,11 @@ import time import ovs.daemon import ovs.util -def handler(signum, frame): + +def handler(signum, _): raise Exception("Signal handler called with %d" % signum) + def main(argv): logging.basicConfig(level=logging.DEBUG) @@ -57,6 +59,7 @@ def main(argv): while True: time.sleep(1) + def usage(): sys.stdout.write("""\ %s: Open vSwitch daemonization test program for Python