Skip to content

Commit

Permalink
Fixed cancel message related test failure on py3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed May 12, 2022
1 parent 7713779 commit 95f43f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_taskgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,9 @@ async def main() -> NoReturn:


@pytest.mark.skipif(
sys.version_info < (3, 9), reason="Cancel messages are only supported on py3.9+"
sys.version_info < (3, 9),
sys.version_info >= (3, 11),
reason="Cancel messages are only supported on Python 3.9 and 3.10",
)
@pytest.mark.parametrize("anyio_backend", ["asyncio"])
async def test_cancellederror_combination_with_message() -> None:
Expand Down

0 comments on commit 95f43f8

Please sign in to comment.