Skip to content

Commit 64da2d9

Browse files
committed
Fix subprocess warnings. !minor
1 parent 650d781 commit 64da2d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_scm/test_hg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ def test_hg_bump_version_commits_changes(hg_repo: Path, fixtures_path: Path, run
197197
dest_cfg.write_text(BASIC_CONFIG)
198198

199199
with inside_dir(hg_repo):
200-
subprocess.run(["hg", "add", ".bumpversion.toml"])
201-
subprocess.run(["hg", "commit", "-m", "add configuration"])
200+
run_command(["hg", "add", ".bumpversion.toml"])
201+
run_command(["hg", "commit", "-m", "add configuration"])
202202
runner.invoke(
203203
cli.cli,
204204
["bump", "minor", "-vv"],
205205
)
206-
hg_result = subprocess.run(["hg", "tags", "-T", "json"], text=True, capture_output=True)
206+
hg_result = run_command(["hg", "tags", "-T", "json"])
207207

208208
hg_logs = json.loads(hg_result.stdout)
209209
tags = [item["tag"] for item in hg_logs]

0 commit comments

Comments
 (0)