Skip to content

Coverage regression for 3.10b4+ (nested if's?) #1188

Closed
@skirpichev

Description

@skirpichev

To Reproduce

For the pr diofant/diofant#1128 try:

$ pip install git+https://github.com/skirpichev/[email protected]
$ cd diofant
$ pip install pytest-cov
$ pytest -q -n0 --cov diofant --cov-report term-missing \
-m 'not slow and not xfail and not regression' diofant/tests/ntheory/test_ntheory.py | \
grep ntheory | grep residue_ntheory.py 
diofant/ntheory/residue_ntheory.py                   565      0    319      2    99%   283->exit, 288->exit

Expected behavior
Mentioned jumps are covered under CPython 3.9.

Additional context

Probably, related coverage failures are in the diofant/functions submodule (should be 100% covered). For instance:

$ pytest -q -n0 --cov diofant --cov-report term-missing \
-m 'not slow and not xfail and not regression' diofant/tests/functions | \
grep functions | grep diofant/functions/exponential.py
diofant/functions/elementary/exponential.py          320     10    194      7    96%   99-102, 334->exit, 342->exit, 376-377, 391-393, 401, 504->exit

Jumps 334->exit, 342->exit and 504->exit should be covered.

PS: I'll try to reduce examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcpythonReported as a bug in CPythonfixed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions