Skip to content

Commit

Permalink
fix static tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed May 11, 2023
1 parent 37a38a1 commit cc2ace3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/test_contextlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ async def no_op():

# during shutdown, generators may be killed in arbitrary order
# make sure we do not suppress GeneratorExit
context = no_op()
with pytest.raises(GeneratorExit, match="inner"):
context = no_op()
async with context:
# simulate cleanup closing the child early
await context.gen.aclose()
Expand Down

0 comments on commit cc2ace3

Please sign in to comment.