summaryrefslogtreecommitdiff
path: root/cherrypy/test/modpy.py
diff options
context:
space:
mode:
authorGustavo Picon <tabo@tabo.pe>2014-01-12 13:57:44 -0500
committerGustavo Picon <tabo@tabo.pe>2014-01-12 13:57:44 -0500
commitc26eb490862e664dc4ef4ea6e55c1dbd106146c4 (patch)
treef997c23aa6d04fc7db78e66ad5f58429b3be824e /cherrypy/test/modpy.py
parentfb84f7713d6ced0031dacb0e7e59d516cc681a4d (diff)
downloadcherrypy-git-c26eb490862e664dc4ef4ea6e55c1dbd106146c4.tar.gz
Running: autopep8 -vvvvv -i `find . -name '*.py'`
--HG-- branch : autopep8
Diffstat (limited to 'cherrypy/test/modpy.py')
-rw-r--r--cherrypy/test/modpy.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cherrypy/test/modpy.py b/cherrypy/test/modpy.py
index 70f7ad43..829628b7 100644
--- a/cherrypy/test/modpy.py
+++ b/cherrypy/test/modpy.py
@@ -91,6 +91,7 @@ PythonOption socket_host %(host)s
PythonDebug On
"""
+
class ModPythonSupervisor(helper.Supervisor):
using_apache = True
@@ -123,6 +124,8 @@ class ModPythonSupervisor(helper.Supervisor):
loaded = False
+
+
def wsgisetup(req):
global loaded
if not loaded:
@@ -134,7 +137,7 @@ def wsgisetup(req):
"log.error_file": os.path.join(curdir, "test.log"),
"environment": "test_suite",
"server.socket_host": options['socket_host'],
- })
+ })
modname = options['testmod']
mod = __import__(modname, globals(), locals(), [''])
@@ -157,7 +160,6 @@ def cpmodpysetup(req):
"log.error_file": os.path.join(curdir, "test.log"),
"environment": "test_suite",
"server.socket_host": options['socket_host'],
- })
+ })
from mod_python import apache
return apache.OK
-