Improve output when failing an assertWarnings().
Review Request #14699 — Created Nov. 18, 2025 and updated
Previously, when
assertWarnings()found fewer or more warnings than
expected, the only result we'd get was an assertion error showing the
mismatched lengths.Now, any mismatches between expected and actual warnings will result in
a full list of the mismatches, helping with diagnosing which warnings
were missing or added.
Unit tests pass.
Tested this with an assertion error I hit. Verified I got a more useful
warnings display.
- Change Summary:
-
Removed imports not part of this change.
- Commits:
-
Summary ID 65e712b18a629c629a3ede06347fcdc64fb354c5 933fa19b5a8193d9d7d6fb3f7ae219700e3f06cf - Diff:
-
Revision 2 (+114 -36)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.