Skip to content

Commit 979a796

Browse files
willemtCopilot
andauthored
syync_wrapper not outer
Co-authored-by: Copilot <[email protected]>
1 parent 8dc766e commit 979a796

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pytest_asyncio_cooperative/plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,9 @@ def run_in_thread():
163163

164164
return result
165165

166-
item.runtest = outer
167-
168-
return result.result()
166+
item.runtest = sync_wrapper
169167

168+
return sync_wrapper()
170169
return outer
171170

172171

0 commit comments

Comments
 (0)