mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: gc: use timedelta (#8912)
Bug from https://github.com/iterative/dvc/pull/8880
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user