3 ms·
In that case, only the first fail will be reported and exit. Which is fair enough in some cases, but may be confusing for long sequences of tests. (There’s the
by jaimebuelta 6y ago
In that case, only the first fail will be reported and exit. Which is fair enough in some cases, but may be confusing for long sequences of tests.
(There’s the option to get that behaviour in pytest as well with a parameter. Also, pytest may run the tests in parallel, which may speed up the results)
- makapuf 6y agoWell sure but a simple function if a!=b print(f"{a} is not {b}") could do the job fine.