diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-18 09:05:17 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-18 09:05:17 +0000 |
commit | c0caabd143d28247667180f78f9f44c48dce63db (patch) | |
tree | fd4e977204b5136f0ea0f60615b5b6fe5d298907 | |
parent | 62e56dd0b93f51705651b09286aad703cc2c6457 (diff) | |
parent | f43fa8bcb82cff19ca6e044cd2c460a31f86a5c0 (diff) | |
download | summain-rs-c0caabd143d28247667180f78f9f44c48dce63db.tar.gz |
Merge branch 'fix' into 'main'
test: if output is not match, print diff
See merge request larswirzenius/summain!16
-rw-r--r-- | subplot/summain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subplot/summain.py b/subplot/summain.py index ca7c0f6..d01e441 100644 --- a/subplot/summain.py +++ b/subplot/summain.py @@ -66,4 +66,7 @@ def output_matches_file(ctx, filename=None): logging.debug(f" actual:\n{actual}") logging.debug(f" expect:\n{expected}") logging.debug(f" diff:\n{diff}") + if actual != expected: + print("ERROR: diff:") + print(diff) assert_eq(actual, expected) |