1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #25684 -- Removed double newline from request/response output of runserver.

Follow up to 0bc5cd6280.
This commit is contained in:
rafrafek
2022-02-12 13:57:25 +01:00
committed by Mariusz Felisiak
parent 5d13cc540e
commit cdd4ff67d2
2 changed files with 4 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ class WSGIRequestHandlerTestCase(SimpleTestCase):
with self.assertLogs("django.server", "ERROR") as cm:
handler.log_message("GET %s %s", "\x16\x03", "4")
self.assertIn(
self.assertEqual(
"You're accessing the development server over HTTPS, "
"but it only supports HTTP.",
cm.records[0].getMessage(),
@@ -114,7 +114,7 @@ class WSGIServerTestCase(SimpleTestCase):
"""WSGIServer handles broken pipe errors."""
request = WSGIRequest(self.request_factory.get("/").environ)
client_address = ("192.168.2.0", 8080)
msg = f"- Broken pipe from {client_address}\n"
msg = f"- Broken pipe from {client_address}"
tests = [
BrokenPipeError,
ConnectionAbortedError,