From 10184e93704dc4e568ef4c0a944d0edac6486628 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 31 Jan 2023 05:18:09 +0200 Subject: [PATCH] tests: gc: use timedelta (#8912) Bug from https://github.com/iterative/dvc/pull/8880 --- tests/func/test_gc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/func/test_gc.py b/tests/func/test_gc.py index e63e144d7..fb6a53323 100644 --- a/tests/func/test_gc.py +++ b/tests/func/test_gc.py @@ -334,7 +334,7 @@ def test_date(tmp_dir, scm, dvc): tmp_dir.dvc_gen("testfile", "content", commit="add testfile") now = datetime.datetime.now() - datestamp = now.date().replace(day=now.day + 1).isoformat() + datestamp = (now.date() + datetime.timedelta(days=1)).isoformat() tmp_dir.dvc_gen("testfile", "modified", commit="modified")