Merge pull request #1225 from BuhtigithuB/pep8-test-web

Improve test_web.py PEP8
This commit is contained in:
mdipierro committed 2016-03-18 20:32:16 -05:00
commit b978bb90de
1 file changed
+3
+3
View File
@@ -22,6 +22,7 @@ from urllib2 import HTTPError
webserverprocess = None webserverprocess = None
def startwebserver(): def startwebserver():
global webserverprocess global webserverprocess
path = path = os.path.dirname(os.path.abspath(__file__)) path = path = os.path.dirname(os.path.abspath(__file__))
@@ -46,6 +47,7 @@ def startwebserver():
continue continue
print '' print ''
def terminate_process(pid): def terminate_process(pid):
# Taken from http://stackoverflow.com/questions/1064335/in-python-2-5-how-do-i-kill-a-subprocess # Taken from http://stackoverflow.com/questions/1064335/in-python-2-5-how-do-i-kill-a-subprocess
# all this **blah** is because we are stuck with Python 2.5 and \ # all this **blah** is because we are stuck with Python 2.5 and \
@@ -59,6 +61,7 @@ def terminate_process(pid):
else: else:
os.kill(pid, signal.SIGKILL) os.kill(pid, signal.SIGKILL)
def stopwebserver(): def stopwebserver():
global webserverprocess global webserverprocess
print 'Killing webserver' print 'Killing webserver'