diff options
author | rafrafek <23004737+rafrafek@users.noreply.github.com> | 2022-02-12 13:57:25 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-02-14 06:55:34 +0100 |
commit | cdd4ff67d23b80741047eaf6b180dc67a782dfbd (patch) | |
tree | e727b03391b837c2594116c3597127cc0545876a /tests/servers | |
parent | 5d13cc540e29eedafe695338d8ec9ec500185ccd (diff) | |
download | django-cdd4ff67d23b80741047eaf6b180dc67a782dfbd.tar.gz |
Refs #25684 -- Removed double newline from request/response output of runserver.
Follow up to 0bc5cd628042bf0a44df60a93085a4f991a84dfb.
Diffstat (limited to 'tests/servers')
-rw-r--r-- | tests/servers/test_basehttp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/servers/test_basehttp.py b/tests/servers/test_basehttp.py index a6e75a9c48..a837505feb 100644 --- a/tests/servers/test_basehttp.py +++ b/tests/servers/test_basehttp.py @@ -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, |