aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-31 20:07:08 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit54c85b18e036d29b7d0e2ca4d5543b37e4fc2f16 (patch)
tree56ccda139a072e1149d5d46c9f6c8ef6232c39e5 /tests/conftest.py
parent72c12c66fa8dbdd94e6e31d0a96d41ae45491930 (diff)
downloadwee-slack-54c85b18e036d29b7d0e2ca4d5543b37e4fc2f16.tar.gz
Sleep for 1 ms if 0 ms is specified
asyncio.sleep(0) is used to move the task to the back of the event loop. This sleep can be used for the same, however if 0 is specified, WeeChat never calls the callback. This means that the task will silently not continue which is very bad, so make it sleep for 1 ms instead, which is practically the same.
Diffstat (limited to 'tests/conftest.py')
0 files changed, 0 insertions, 0 deletions