MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_async_stacks_should_work

Function test_async_stacks_should_work

tests/async/test_page.py:183–190  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

181
182
183async def test_async_stacks_should_work(page: Page, server: Server) -> None:
184 await page.route(
185 "**/empty.html", lambda route, response: asyncio.create_task(route.abort())
186 )
187 with pytest.raises(Error) as exc_info:
188 await page.goto(server.EMPTY_PAGE)
189 assert exc_info.value.stack
190 assert __file__ in exc_info.value.stack
191
192
193async def test_opener_should_provide_access_to_the_opener_page(page: Page) -> None:

Callers

nothing calls this directly

Calls 3

routeMethod · 0.45
abortMethod · 0.45
gotoMethod · 0.45

Tested by

no test coverage detected