Reported location for assertion error is off with coverage #5754
Labels
topic: rewrite
related to the assertion rewrite mechanism
type: bug
problem that needs to be addressed
type: regression
indicates a problem that was introduced in a release which was working previously
Locations for assertion errors are off when using pytest with coverage (pytest-cov):
Bisected to 39ba996.
More information (original issue):
In https://travis-ci.com/pdbpp/fancycompleter/jobs/226053243#L153 it reports this error:
Full log: https://travis-ci.com/pdbpp/fancycompleter/jobs/226053243#L153
Note that it reports the error with the wrong assert statement - which can be seen also by "passed first" not being included in "Captured stdout call".
With
--assert=plain
it is correct:platform win32 -- Python 3.7.4, pytest-5.1.0, py-1.8.0, pluggy-0.12.0
The text was updated successfully, but these errors were encountered: