Skip to content

Commit 515e21d

Browse files
committed
update uv python version for benchmark
1 parent 47f75ce commit 515e21d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def run_benchmark(args: list):
428428
with get_package_resource_path('mytonctrl', 'scripts/benchmark.py') as benchmark_path:
429429
shutil.copy(benchmark_path, tmp_dir / "benchmark.py")
430430

431-
subprocess.run(["uv", "init", "--no-workspace", "--name", "benchmark"], cwd=tmp_dir, check=True)
431+
subprocess.run(["uv", "init", "--python", "3.13", "--no-workspace", "--name", "benchmark"], cwd=tmp_dir, check=True)
432432

433433
src_dir = Path("/usr/src/ton")
434434
test_dir = tmp_dir / "test"

tests/integration/test_benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def fake_subprocess_run(args, **kwargs):
7979
assert len(calls) == 4
8080

8181
# uv init
82-
assert calls[0]["args"] == ["uv", "init", "--no-workspace", "--name", "benchmark"]
82+
assert calls[0]["args"] == ["uv", "init", "--python", "3.13", "--no-workspace", "--name", "benchmark"]
8383
assert "cwd" in calls[0]["kwargs"]
8484
tmp_dir = str(calls[0]["kwargs"]["cwd"])
8585

0 commit comments

Comments
 (0)