Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 29, 2023
1 parent 015eec1 commit d9dfe26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/unit/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ def test_fix_env_pyenv(path, orig):

@pytest.mark.skipif(os.name != "nt", reason="Windows specific")
def test_relpath_windows():
assert (
relpath("x:\\dir1\\dir2\\file.txt", "x:\\dir1")
== "dir2\\file.txt"
)
assert relpath("x:\\dir1\\dir2\\file.txt", "x:\\dir1") == "dir2\\file.txt"

assert (
relpath("y:\\dir1\\dir2\\file.txt", "\\\\server\\share\\dir1")
Expand Down

0 comments on commit d9dfe26

Please sign in to comment.