Skip to content

Commit f1058ea

Browse files
for unit tests
1 parent 9ab06d3 commit f1058ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/verification/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def __init__(self, config: Config) -> None:
338338
self.logger = logging.getLogger(self.name)
339339
self.usable_runtime_data_by_test_case: dict[str, list[int]] = {}
340340
self.total_loop_runtimes: list[int] = []
341-
self.is_perf_test: bool = config.option.codeflash_max_loops > 1
341+
self.is_perf_test: bool = getattr(config.option, "codeflash_max_loops", 1) > 1
342342

343343
@pytest.hookimpl
344344
def pytest_runtest_logreport(self, report: pytest.TestReport) -> None:

0 commit comments

Comments
 (0)