mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-15 15:28:26 +01:00
Drop Python 3.5 support (#3792)
* drop python 3.5 support * dvc: remove fspath() use inside os.path calls * dvc: replace dvc.compat.fspath with os.fspath * tests: replace dvc.compat.fspath with os.fspath * utils: relpath() should use fspath/str * utils: os.readlink doesn't support path-like obj on Windows until 3.8
This commit is contained in:
@@ -4,7 +4,6 @@ import os
|
||||
import pytest
|
||||
from funcy import first
|
||||
|
||||
from dvc.compat import fspath
|
||||
from dvc.exceptions import DvcException
|
||||
from dvc.utils.fs import remove
|
||||
|
||||
@@ -38,7 +37,7 @@ def test_no_cache_entry(tmp_dir, scm, dvc):
|
||||
tmp_dir.dvc_gen({"dir": {"1": "1", "2": "2"}})
|
||||
tmp_dir.dvc_gen("file", "second")
|
||||
|
||||
remove(fspath(tmp_dir / ".dvc" / "cache"))
|
||||
remove(tmp_dir / ".dvc" / "cache")
|
||||
(tmp_dir / ".dvc" / "tmp" / "state").unlink()
|
||||
|
||||
dir_checksum = "5fb6b29836c388e093ca0715c872fe2a.dir"
|
||||
|
||||
Reference in New Issue
Block a user