Skip to content

Commit 651b174

Browse files
adam-grant-hendryLee-W
authored andcommitted
test(test_init_command.py): use os.sep
Use `os.sep` for file paths. On Windows, this is `\`. On Linux and MacOS, this is `/`.
1 parent edc882a commit 651b174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tests/commands/test_init_command.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_init_without_setup_pre_commit_hook(tmpdir, mocker, config):
6565

6666
def test_init_when_config_already_exists(config, capsys):
6767
# Set config path
68-
path = "tests/pyproject.toml"
68+
path = os.sep.join(["tests", "pyproject.toml"])
6969
config.add_path(path)
7070

7171
commands.Init(config)()

0 commit comments

Comments
 (0)