Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Conversation

luccabb
Copy link

@luccabb luccabb commented Mar 6, 2024

moving from datetime.now() to time.monotonic()

minimum fix for #149

pytest looks green

(base) lcb@lcbs-MacBook-Pro backoff % pytest
====================================================================== test session starts ======================================================================
platform darwin -- Python 3.12.1, pytest-8.0.2, pluggy-1.4.0
rootdir: /Users/lcb/code/backoff
plugins: asyncio-0.23.5
asyncio: mode=Mode.STRICT
collected 123 items                                                                                                                                             

tests/test_backoff.py ................................................................................                                                    [ 65%]
tests/test_backoff_async.py ...........................                                                                                                   [ 86%]
tests/test_integration.py ..                                                                                                                              [ 88%]
tests/test_jitter.py .                                                                                                                                    [ 89%]
tests/test_wait_gen.py .............                                                                                                                      [100%]

======================================================================= warnings summary ========================================================================
tests/test_backoff_async.py:667
  tests/test_backoff_async.py:667: PytestDeprecationWarning: test_on_exception_coro_cancelling is asynchronous and explicitly requests the "event_loop" fixture. Asynchronous fixtures and test functions should use "asyncio.get_running_loop()" instead.
    @pytest.mark.asyncio

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================ 123 passed, 1 warning in 0.21s =================================================================

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant