summaryrefslogtreecommitdiff
path: root/tests/handlers/tests.py
diff options
context:
space:
mode:
authorMark <dr.theman@gmail.com>2020-04-07 20:32:54 +0200
committerGitHub <noreply@github.com>2020-04-07 20:32:54 +0200
commit590957a0eb9a87a6f2bd3463226b0a7f1405d817 (patch)
treeb288c6a5034e9a9219b459bf3c25939021dd7440 /tests/handlers/tests.py
parent26799c650389bec255df581eb400730916919aa1 (diff)
Fixed #31407 -- Adjusted test to avoid coroutine never awaited warning.
Diffstat (limited to 'tests/handlers/tests.py')
-rw-r--r--tests/handlers/tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/handlers/tests.py b/tests/handlers/tests.py
index dac2d967f3..3d322ec6ed 100644
--- a/tests/handlers/tests.py
+++ b/tests/handlers/tests.py
@@ -269,9 +269,10 @@ class AsyncHandlerRequestTests(SimpleTestCase):
async def test_unawaited_response(self):
msg = (
- "The view handlers.views.async_unawaited didn't return an "
- "HttpResponse object. It returned an unawaited coroutine instead. "
- "You may need to add an 'await' into your view."
+ "The view handlers.views.CoroutineClearingView.__call__ didn't"
+ " return an HttpResponse object. It returned an unawaited"
+ " coroutine instead. You may need to add an 'await'"
+ " into your view."
)
with self.assertRaisesMessage(ValueError, msg):
await self.async_client.get('/unawaited/')