22from pathlib import Path
33import shutil
44import subprocess
5+ import sys
56
67
78def test_no_changes_implies_no_regression (baseline_report : Path , tmp_path : Path ):
@@ -12,7 +13,7 @@ def test_no_changes_implies_no_regression(baseline_report: Path, tmp_path: Path)
1213
1314 process : subprocess .CompletedProcess = subprocess .run (
1415 [
15- "python3" ,
16+ sys . executable ,
1617 ".github/scripts/check_pyrefly_coverage.py" ,
1718 "--baseline_report_path" ,
1819 baseline_report ,
@@ -46,7 +47,7 @@ def test_increasing_type_coverage_implies_no_regression(
4647
4748 process : subprocess .CompletedProcess = subprocess .run (
4849 [
49- "python3" ,
50+ sys . executable ,
5051 ".github/scripts/check_pyrefly_coverage.py" ,
5152 "--baseline_report_path" ,
5253 baseline_report ,
@@ -80,7 +81,7 @@ def test_decreasing_type_coverage_implies_regression(
8081
8182 process : subprocess .CompletedProcess = subprocess .run (
8283 [
83- "python3" ,
84+ sys . executable ,
8485 ".github/scripts/check_pyrefly_coverage.py" ,
8586 "--baseline_report_path" ,
8687 baseline_report ,
@@ -136,7 +137,7 @@ def test_adding_fully_annotated_file_implies_no_regression(
136137
137138 process : subprocess .CompletedProcess = subprocess .run (
138139 [
139- "python3" ,
140+ sys . executable ,
140141 ".github/scripts/check_pyrefly_coverage.py" ,
141142 "--baseline_report_path" ,
142143 baseline_report ,
@@ -191,7 +192,7 @@ def test_adding_partially_annotated_file_implies_regression(
191192
192193 process : subprocess .CompletedProcess = subprocess .run (
193194 [
194- "python3" ,
195+ sys . executable ,
195196 ".github/scripts/check_pyrefly_coverage.py" ,
196197 "--baseline_report_path" ,
197198 baseline_report ,
0 commit comments