nestorsalceda / mamba

The definitive testing tool for Python. Born under the banner of Behavior Driven Development (BDD).
http://nestorsalceda.github.io/mamba
MIT License
518 stars 65 forks source link

Ability to ignore a line in the coverage report? #107

Closed cbetta closed 6 years ago

cbetta commented 6 years ago

Is there any way to ignore some lines in the coverage report? I have some lines that only run depending on the Python version used, which can't be tested in one run.

cbetta commented 6 years ago

And as I wrote this I found the solution:

code_to_ignore # pragma: no cover