diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2022-05-30 15:48:19 -0600 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2022-05-30 15:48:19 -0600 |
commit | ca95fa2108abc7efdbf814661a7d4a4b2f82a8fd (patch) | |
tree | 53797a2c1c53a8a01b616ff59ef31ba76351a433 /tests | |
parent | 0aa4879d08b1fa816505dbb4f42342ba1d531644 (diff) | |
download | waitress-ca95fa2108abc7efdbf814661a7d4a4b2f82a8fd.tar.gz |
Revert "Revert "Merge pull request #370 from Yourun-proger/del_warnings""
This reverts commit 2784628a0fd1a38492e27384815953a44b3a3d5a.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_adjustments.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/test_adjustments.py b/tests/test_adjustments.py index 69cdf51..cbbb006 100644 --- a/tests/test_adjustments.py +++ b/tests/test_adjustments.py @@ -354,20 +354,6 @@ class TestAdjustments(unittest.TestCase): self.assertTrue(issubclass(w[0].category, DeprecationWarning)) self.assertIn("Implicitly trusting X-Forwarded-Proto", str(w[0])) - def test_clear_untrusted_proxy_headers(self): - with warnings.catch_warnings(record=True) as w: - warnings.resetwarnings() - warnings.simplefilter("always") - self._makeOne( - trusted_proxy="localhost", trusted_proxy_headers={"x-forwarded-for"} - ) - - self.assertGreaterEqual(len(w), 1) - self.assertTrue(issubclass(w[0].category, DeprecationWarning)) - self.assertIn( - "clear_untrusted_proxy_headers will be set to True", str(w[0]) - ) - def test_deprecated_send_bytes(self): with warnings.catch_warnings(record=True) as w: warnings.resetwarnings() |