Skip to content

Commit ff584fb

Browse files
author
Codeflash Bot
committed
reprlib repr for shorter repr
1 parent 704a4b0 commit ff584fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codeflash/verification/equivalence.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import reprlib
34
import sys
45
from typing import TYPE_CHECKING
56

@@ -70,8 +71,8 @@ def compare_test_results(original_results: TestResults, candidate_results: TestR
7071
test_src_code = original_test_result.id.get_src_code(original_test_result.file_name)
7172
test_diff = TestDiff(
7273
scope=TestDiffScope.RETURN_VALUE,
73-
original_value=repr(original_test_result.return_value),
74-
candidate_value=repr(cdd_test_result.return_value),
74+
original_value=reprlib.repr(original_test_result.return_value),
75+
candidate_value=reprlib.repr(cdd_test_result.return_value),
7576
test_src_code=test_src_code,
7677
candidate_pytest_error=cdd_pytest_error,
7778
original_pass=original_test_result.did_pass,

0 commit comments

Comments
 (0)