summaryrefslogtreecommitdiff
path: root/tests/httpwrappers
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /tests/httpwrappers
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
Diffstat (limited to 'tests/httpwrappers')
-rw-r--r--tests/httpwrappers/tests.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py
index f85d33e823..f1caec6b71 100644
--- a/tests/httpwrappers/tests.py
+++ b/tests/httpwrappers/tests.py
@@ -320,8 +320,8 @@ class HttpResponseTests(SimpleTestCase):
self.assertEqual(r.headers["key"], "=?utf-8?b?4oCg?=")
self.assertIn(b"=?utf-8?b?4oCg?=", r.serialize_headers())
- # The response also converts string or bytes keys to strings, but requires
- # them to contain ASCII
+ # The response also converts string or bytes keys to strings, but
+ # requires them to contain ASCII
r = HttpResponse()
del r.headers["Content-Type"]
r.headers["foo"] = "bar"
@@ -350,8 +350,8 @@ class HttpResponseTests(SimpleTestCase):
f = b"zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz a\xcc\x88"
f = f.decode("utf-8")
h.headers["Content-Disposition"] = 'attachment; filename="%s"' % f
- # This one is triggering https://bugs.python.org/issue20747, that is Python
- # will itself insert a newline in the header
+ # This one is triggering https://bugs.python.org/issue20747, that is
+ # Python will itself insert a newline in the header
h.headers["Content-Disposition"] = (
'attachment; filename="EdelRot_Blu\u0308te (3)-0.JPG"'
)