Minor cosmetic fixes.

This commit is contained in:
Berker Peksag 2015-07-03 07:43:22 +03:00
parent 436c9872a2
commit 7fff5afa39
2 changed files with 6 additions and 7 deletions

View File

@ -3,17 +3,18 @@
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import treq
import glob
import os
import pytest
import treq
dirname = os.path.dirname(__file__)
reqdir = os.path.join(dirname, "requests", "invalid")
httpfiles = glob.glob(os.path.join(reqdir, "*.http"))
@pytest.mark.parametrize("fname", httpfiles)
def test_http_parser(fname):
env = treq.load_py(os.path.splitext(fname)[0] + ".py")

View File

@ -3,13 +3,13 @@
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import t
import os
from gunicorn.app.base import BaseApplication
import gunicorn.app.base
import gunicorn.arbiter
class PreloadedAppWithEnvSettings(BaseApplication):
class PreloadedAppWithEnvSettings(gunicorn.app.base.BaseApplication):
"""
Simple application that makes use of the 'preload' feature to
start the application before spawning worker processes and sets
@ -18,11 +18,9 @@ class PreloadedAppWithEnvSettings(BaseApplication):
def init(self, parser, opts, args):
"""No-op"""
pass
def load(self):
"""No-op"""
pass
def load_config(self):
"""Set the 'preload_app' and 'raw_env' settings in order to verify their