diff options
author | Gustavo Picon <tabo@tabo.pe> | 2014-01-12 13:57:44 -0500 |
---|---|---|
committer | Gustavo Picon <tabo@tabo.pe> | 2014-01-12 13:57:44 -0500 |
commit | c26eb490862e664dc4ef4ea6e55c1dbd106146c4 (patch) | |
tree | f997c23aa6d04fc7db78e66ad5f58429b3be824e /cherrypy/test/modpy.py | |
parent | fb84f7713d6ced0031dacb0e7e59d516cc681a4d (diff) | |
download | cherrypy-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.py | 8 |
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 - |