summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-09-16 15:48:33 -0700
committerEthan Jackson <ethan@nicira.com>2011-09-16 15:51:12 -0700
commit50e97486ca7966922d1c2c29e84e08cbe5ac2140 (patch)
tree24f7ef529b5c396c78bc82d37605c69ec20ede25 /tests
parenta5faa982dca4666c705717db165a2e8a13592e01 (diff)
downloadopenvswitch-50e97486ca7966922d1c2c29e84e08cbe5ac2140.tar.gz
tests: Cleanup test-daemon.py style.
By convention, unused arguments should be named "_" and top level definitions should be separated by two spaces.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-daemon.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-daemon.py b/tests/test-daemon.py
index 350b8f703..816304fa0 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