Skip to content

Commit 44cd31d

Browse files
committed
some minor touch ups needed but this is good
1 parent 0397c3a commit 44cd31d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

codeflash/code_utils/edit_generated_tests.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,11 @@ def add_runtime_comments_to_generated_tests(
241241
"""Add runtime performance comments to function calls in generated tests."""
242242
tests_root = test_cfg.tests_root
243243
module_root = test_cfg.project_root_path
244-
rel_tests_root = tests_root.relative_to(module_root)
245-
244+
try:
245+
rel_tests_root = tests_root.relative_to(module_root)
246+
except Exception as e:
247+
logger.debug(e)
248+
return generated_tests
246249
# Process each generated test
247250
modified_tests = []
248251
for test in generated_tests.generated_tests:

0 commit comments

Comments
 (0)