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

maint: stop using deprecated utcnow #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Member

Potentially it might be addressing

In our case we got datalad tests failing since we trigger errors on all new deprecation warnigns and this was the one this time

.pybuild/cpython3_3.12_datalad/build/datalad/downloaders/tests/test_http.py: 13 warnings
  /usr/lib/python3/dist-packages/httpretty/core.py:1077: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    now = datetime.utcnow()

Potentially it might be addressing
- gabrielfalcao#474

In our case we got datalad tests failing since we trigger errors on all new
deprecation warnigns and this was the one this time

    .pybuild/cpython3_3.12_datalad/build/datalad/downloaders/tests/test_http.py: 13 warnings
      /usr/lib/python3/dist-packages/httpretty/core.py:1077: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
        now = datetime.utcnow()
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