Please sign in to comment.
[FIX] point_of_sale: incorrect assertAlmostEqual
The third parameter to assertAlmostEqual is a precision (places), not the assertion message. This goes unnoticed when using two objects which are strictly equal because assertAlmostEqual shortcuts if the two inputs are equal, before falling back on approximation. Since the parameters here are two integers, they're always going to be either identical or completely different, therefore the issue is only visible if the assertion fails, hiding the assertion error. * pass the message by keyword * replace assertAlmostEqual by assertEqual as the inputs are integers and integers can't really be "almost" equal closes #40030 X-original-commit: f22e717 Signed-off-by: Xavier Morel (xmo) <firstname.lastname@example.org>
- Loading branch information...
Showing with 1 addition and 1 deletion.