fix: side effect of linter fixes

This commit is contained in:
Maciej Lisiewski
2026-10-09 20:46:55 +02:00
parent dd7cb3ab1b
commit d95e35fe0f

View File

@@ -620,7 +620,7 @@ def test_native_dispatch_child_environment(tmp_path, monkeypatch, cache_source,
before, run, homes = dict(os.environ), subprocess.run, []
observed = tmp_path / "child.json"
def child(command, *, cwd, env):
def child(command, *, cwd, env, check):
assert command[command.index("-m") + 1] == "scripts.bundles.native"
return run([sys.executable, "-c",
"import os,json,sys; from pathlib import Path; "
@@ -628,7 +628,7 @@ def test_native_dispatch_child_environment(tmp_path, monkeypatch, cache_source,
"assert all((Path(os.environ[k])/'fixture-state').read_text() == k for k in ('CARGO_HOME','RUSTUP_HOME')); "
"p=Path(os.environ['UV_CACHE_DIR']); p.mkdir(parents=True,exist_ok=True); "
"f=p/'reused'; f.write_text(f.read_text()+'x' if f.exists() else 'x'); sys.exit(int(sys.argv[2]))",
str(observed), str(status)], cwd=cwd, env=env)
str(observed), str(status)], cwd=cwd, env=env, check=check)
monkeypatch.setattr(native.subprocess, "run", child)
out = tmp_path / "payload"