We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a38a1 commit cc2ace3Copy full SHA for cc2ace3
unittests/test_contextlib.py
@@ -158,8 +158,8 @@ async def no_op():
158
159
# during shutdown, generators may be killed in arbitrary order
160
# make sure we do not suppress GeneratorExit
161
+ context = no_op()
162
with pytest.raises(GeneratorExit, match="inner"):
- context = no_op()
163
async with context:
164
# simulate cleanup closing the child early
165
await context.gen.aclose()
0 commit comments