Full diff of sequences should be displayed on assertion failures when verbose #715
Labels
topic: reporting
related to terminal output and user-facing messages and errors
type: bug
problem that needs to be addressed
Originally reported by: BitBucket: pombredanne, GitHub: pombredanne
Today when tow sequences are compared, only the first different element is display with an ellipsis for the rest and there is no way to display a full sequence diff.
This means that other logging/print mechanisms must be used to display these on failure.
The proposed fix (pull request coming) is to enable a full sequence diff.
Note that while
_pytest.assertion.util._compare_eq_sequence
does not allow for these full diffs,_pytest.assertion.util._compare_eq_iterable
does. And that_pytest.assertion.util._compare_eq_sequence
has some commented out difflib calling code meaning that someone though about this at some point of time in the past...The text was updated successfully, but these errors were encountered: