Skip to content

Commit 1f7a4a8

Browse files
committed
Update pytest_new_process_trace_benchmarks.py
1 parent 799d423 commit 1f7a4a8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

codeflash/benchmarking/pytest_new_process_trace_benchmarks.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import sys
22
from pathlib import Path
33

4-
from codeflash.benchmarking.codeflash_trace import codeflash_trace
5-
from codeflash.benchmarking.plugin.plugin import codeflash_benchmark_plugin
6-
74
benchmarks_root = sys.argv[1]
85
tests_root = sys.argv[2]
96
trace_file = sys.argv[3]
@@ -12,6 +9,12 @@
129
if __name__ == "__main__":
1310
import pytest
1411

12+
pytest.register_assert_rewrite("codeflash.benchmarking.codeflash_trace")
13+
pytest.register_assert_rewrite("codeflash.benchmarking.plugin.plugin")
14+
15+
from codeflash.benchmarking.codeflash_trace import codeflash_trace
16+
from codeflash.benchmarking.plugin.plugin import codeflash_benchmark_plugin
17+
1518
try:
1619
# Increase recursion limit to handle recursive benchmarks with tracing overhead
1720
original_limit = sys.getrecursionlimit()

0 commit comments

Comments
 (0)