Skip to content

Commit

Permalink
MNT: datetime.utcnow()datetime.now(tz=timezone.utc)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 16, 2023
1 parent 12e1b73 commit ecff319
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 ecff319

Please sign in to comment.