Skip to content

Commit

Permalink
Merge pull request #2 from DimitriPapadopoulos/utcnow
Browse files Browse the repository at this point in the history
MNT: `datetime.utcnow()` → `datetime.now(tz=timezone.utc)`
  • Loading branch information
effigies authored Nov 5, 2023
2 parents dcdc13d + 271d1fd commit af4f97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_schemes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from datetime import date, datetime
from datetime import date, datetime, timezone
from functools import partial

import pytest
Expand Down Expand Up @@ -86,5 +86,5 @@ def test_next_calver():
next_calver(
m("1.0.0", distance=1, branch="master"),
)
== f"{datetime.utcnow():%y}.0.0"
== f"{datetime.now(timezone.utc):%y}.0.0"
)

0 comments on commit af4f97a

Please sign in to comment.