From 271d1fd8e03c79ff618dd9ca0be626d5a4c14d87 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 16 Oct 2023 13:27:13 +0200 Subject: [PATCH] =?UTF-8?q?MNT:=20`datetime.utcnow()`=20=E2=86=92=20`datet?= =?UTF-8?q?ime.now(tz=3Dtimezone.utc)`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_schemes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_schemes.py b/tests/test_schemes.py index f8b23c6..1718ac5 100644 --- a/tests/test_schemes.py +++ b/tests/test_schemes.py @@ -1,4 +1,4 @@ -from datetime import date, datetime +from datetime import date, datetime, timezone from functools import partial import pytest @@ -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" )