From 473ac62a2b559c9bab5db67ad9de67b506d6e97b Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 6 May 2018 18:10:53 +0300 Subject: [PATCH] Revert "Add test and update documentation" This reverts commit eab1256052d7446359fb6f65279f9bebd18fafd4. --- docs/source/settings.rst | 4 ---- gunicorn/config.py | 4 ---- tests/test_config.py | 14 -------------- 3 files changed, 22 deletions(-) diff --git a/docs/source/settings.rst b/docs/source/settings.rst index 432640d6..e13e39fd 100644 --- a/docs/source/settings.rst +++ b/docs/source/settings.rst @@ -42,10 +42,6 @@ application specific configuration. Loading the config from a Python module requires the ``python:`` prefix. -.. versionchanged:: 19.8 - Pre-19.4 behavior of loading a config file without a ``python:`` - prefix is now restored. - Server Socket ------------- diff --git a/gunicorn/config.py b/gunicorn/config.py index 3469deb5..aa978949 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -523,10 +523,6 @@ class ConfigFile(Setting): .. versionchanged:: 19.4 Loading the config from a Python module requires the ``python:`` prefix. - - .. versionchanged:: 19.8 - Pre-19.4 behavior of loading a config file without a ``python:`` - prefix is now restored. """ class Bind(Setting): diff --git a/tests/test_config.py b/tests/test_config.py index 31424e83..714d2926 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -238,20 +238,6 @@ def test_load_config_module(): assert app.cfg.proc_name == "fooey" -@pytest.mark.parametrize("options", [ - ["-c", cfg_module()], - ["-c", cfg_file()], -]) -def test_load_fallback(options): - cmdline = ["prog_name"] - cmdline.extend(options) - with AltArgs(cmdline): - app = NoConfigApp() - assert app.cfg.bind == ["unix:/tmp/bar/baz"] - assert app.cfg.workers == 3 - assert app.cfg.proc_name == "fooey" - - def test_cli_overrides_config(): with AltArgs(["prog_name", "-c", cfg_file(), "-b", "blarney"]): app = NoConfigApp()