Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monotonic time #216

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

monotonic time #216

wants to merge 3 commits into from

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant