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 8452d41 commit 559e883Copy full SHA for 559e883
pytest_asyncio/plugin.py
@@ -237,14 +237,7 @@ def advance_time(self, seconds):
237
'''
238
if seconds <= 0:
239
# cannot go backwards in time, so return after one iteration of a loop
240
- return asyncio.sleep(0)
241
-
242
- # Add a task associated with iterating the currently "ready" tasks and handles
243
- #
244
- # NOTE: This can actually take place after the offset changed, but
245
- # it is here to highlight that the loop is for currently ready
246
- # items before offset is applied
247
- self.create_task(asyncio.sleep(0))
+ return self.create_task(asyncio.sleep(0))
248
249
# advance the clock by the given offset
250
self._offset += seconds
0 commit comments