summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2022-05-30 15:48:19 -0600
committerBert JW Regeer <bertjw@regeer.org>2022-05-30 15:48:19 -0600
commitca95fa2108abc7efdbf814661a7d4a4b2f82a8fd (patch)
tree53797a2c1c53a8a01b616ff59ef31ba76351a433 /tests
parent0aa4879d08b1fa816505dbb4f42342ba1d531644 (diff)
downloadwaitress-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.py14
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()