Skip to content

Commit

Permalink
Removed prematurely added test
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Oct 8, 2022
1 parent 8952575 commit 8b2678a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/test_from_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,22 +503,3 @@ async def in_loop() -> None:
await to_thread.run_sync(portal.start_task_soon, in_loop)

assert not caplog.text

def test_raise_baseexception_from_task(
self, anyio_backend_name: str, anyio_backend_options: dict[str, Any]
) -> None:
"""
Test that when a task raises a BaseException, it does not trigger additional
exceptions when trying to close the portal.
"""

async def raise_baseexception() -> None:
raise BaseException("fatal error")

with pytest.raises(BaseException, match="fatal error"):
with start_blocking_portal(
anyio_backend_name, anyio_backend_options
) as portal:
with pytest.raises(BaseException, match="fatal error"):
portal.call(raise_baseexception)

0 comments on commit 8b2678a

Please sign in to comment.