summaryrefslogtreecommitdiffhomepage
path: root/test/python/lifespan/error/asgi.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/python/lifespan/error/asgi.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/python/lifespan/error/asgi.py b/test/python/lifespan/error/asgi.py
new file mode 100644
index 00000000..509cb3ee
--- /dev/null
+++ b/test/python/lifespan/error/asgi.py
@@ -0,0 +1,3 @@
+async def application(scope, receive, send):
+ if scope['type'] != 'http':
+ raise Exception('Exception blah')