Commit 224305c
committed
Improve error message for image_comparison decorator.
The name of the test is already reported by pytest; the mismatching
number of images is more useful.
If a non-callable is passed to the decorator the test will fail
normally and be reported as such by pytest; no need to check for it.1 parent 91a2bb8 commit 224305c
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
| |||
258 | 257 | | |
259 | 258 | | |
260 | 259 | | |
261 | | - | |
262 | | - | |
| 260 | + | |
| 261 | + | |
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
| |||
0 commit comments