[Git][reproducible-builds/diffoscope][master] Assign seen and expected values to local variables to improve contextual...
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Tue Aug 17 12:34:05 UTC 2021
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
6ec1c6b7 by Chris Lamb at 2021-08-17T13:33:00+01:00
Assign seen and expected values to local variables to improve contextual information in failed tests.
- - - - -
1 changed file:
- tests/utils/data.py
Changes:
=====================================
tests/utils/data.py
=====================================
@@ -47,7 +47,11 @@ def get_data(filename):
def assert_diff(difference, filename):
- assert difference.unified_diff == get_data(filename)
+ # Assign seen and expected values to local variables to improve contextual
+ # information in failed tests.
+ seen = difference.unified_diff
+ expected = get_data(filename)
+ assert seen == expected
# https://code.activestate.com/recipes/576620-changedirectory-context-manager/#c3
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/6ec1c6b7162602f98230ad5cb974ca59b10a5c80
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/6ec1c6b7162602f98230ad5cb974ca59b10a5c80
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210817/53cfdd70/attachment.htm>
More information about the rb-commits
mailing list