Skip to content

Commit 48d2fd7

Browse files
use correct hg path in the isolated from env test
1 parent 5f68a3c commit 48d2fd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/test_mercurial.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ def test_hg_command_from_env(
7777
m.setenv("SETUPTOOLS_SCM_HG_COMMAND", hg_exe)
7878
m.setenv("PATH", str(wd.cwd / "not-existing"))
7979
wd.write("pyproject.toml", "[tool.setuptools_scm]")
80+
# Use the configured hg command for test operations
81+
wd.add_command = f"{hg_exe} add ."
82+
wd.commit_command = f'{hg_exe} commit -m test-{{reason}} -u test -d "0 0"'
8083
# Need to commit something first for versioning to work
8184
wd.commit_testfile()
8285
version = wd.get_version()

0 commit comments

Comments
 (0)