Skip to content

Commit cc2ace3

Browse files
fix static tests
1 parent 37a38a1 commit cc2ace3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/test_contextlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ async def no_op():
158158

159159
# during shutdown, generators may be killed in arbitrary order
160160
# make sure we do not suppress GeneratorExit
161+
context = no_op()
161162
with pytest.raises(GeneratorExit, match="inner"):
162-
context = no_op()
163163
async with context:
164164
# simulate cleanup closing the child early
165165
await context.gen.aclose()

0 commit comments

Comments
 (0)