Skip to content

Commit 7c7653f

Browse files
committed
Finding root cause
1 parent 5c460cb commit 7c7653f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyperformance/data-files/benchmarks/bm_2to3/run_benchmark.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@
1414

1515
datadir = os.path.join(os.path.dirname(__file__), 'data', '2to3')
1616
pyfiles = glob.glob(os.path.join(datadir, '*.py.txt'))
17+
command = [sys.executable, "-m", "lib2to3", "-f", "all"] + pyfiles
1718

1819
try:
1920
import lib2to3
2021
except ModuleNotFoundError:
2122
vendor = os.path.join(os.path.dirname(__file__), 'vendor')
2223
subprocess.run([sys.executable, "-m", "pip", "install", vendor])
23-
command = [sys.executable, "-m", "lib2to3", "-f", "all"] + pyfiles
24+
subprocess.run(command)
25+
2426
runner.bench_command('2to3', command)

0 commit comments

Comments
 (0)