Skip to content

Commit 72558a4

Browse files
committed
Finish async generator fixtures in reverse order they were brought up
1 parent 86403f0 commit 72558a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_twisted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _pytest_pyfunc_call(pyfuncitem):
171171

172172
async_generator_deferreds = [
173173
(arg, defer.ensureDeferred(g.coroutine.__anext__()))
174-
for arg, g in async_generators
174+
for arg, g in reversed(async_generators)
175175
]
176176

177177
for arg, d in async_generator_deferreds:

0 commit comments

Comments
 (0)