mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
17 lines
336 B
Python
17 lines
336 B
Python
import asyncio
|
|
|
|
from mitmproxy.test.taddons import RecordingMaster
|
|
|
|
|
|
async def err():
|
|
raise RuntimeError
|
|
|
|
|
|
async def test_exception_handler():
|
|
m = RecordingMaster(None)
|
|
running = asyncio.create_task(m.run())
|
|
asyncio.create_task(err())
|
|
await m.await_log("Traceback", level="error")
|
|
m.shutdown()
|
|
await running
|