Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the message clearer to avoid confusion about a scary and lengthy test stack #3298

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ax/utils/common/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,11 @@ def assertAxBaseEqual(
else first != second
):
raise self.failureException(
"Encountered unequal objects. "
"Attempting in-depth comparison; note that this recurs through the"
" attributes of the objects being compared multiple times!\n\n"
"Encountered unequal objects. This Ax utility will now attempt an "
"in-depth comparison of the objects to print out the actually "
"unequal fields within them. Note that the resulting printout is "
"a nested comparison, and you'll find the actual unequal fields at "
"the very bottom. Don't be scared of the long printout : )\n\n"
+ _build_comparison_str(
first=first, second=second, skip_db_id_check=skip_db_id_check
),
Expand Down