Skip to content

Commit b8f3093

Browse files
Apply suggestion from @codeflash-ai[bot]
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
1 parent ff924f4 commit b8f3093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ def extract_unique_errors(pytest_output: str) -> set[str]:
365365
# - Capture the actual error message
366366
pattern = r"^E\s+(.*)$"
367367

368-
for match in re.finditer(pattern, pytest_output, re.MULTILINE):
369-
error_message = match.group(1).strip()
368+
for error_message in re.findall(pattern, pytest_output, re.MULTILINE):
369+
error_message = error_message.strip()
370370
if error_message:
371371
unique_errors.add(error_message)
372372

0 commit comments

Comments
 (0)