# Unexpected missing coverage

**URL:** <https://community.codecov.com/t/unexpected-missing-coverage/620>\
**Category:** Support\
**Tags:** python\
**Created:** [October 23, 2019, 5:21pm UTC](https://community.codecov.com/t/unexpected-missing-coverage/620 "2019-10-23T17:21:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![atugushev](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/atugushev/32/256_2.png) [@atugushev](https://community.codecov.com/u/atugushev)\
**Post date:** [October 23, 2019, 5:21pm UTC](https://community.codecov.com/t/unexpected-missing-coverage/620/1 "2019-10-23T17:21:14Z")

</div>

![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/c505b9c27b4ef98e73afd59c63a5b642e570c723.png)

The `yield` is green, but `def RequirementTracker():` is red. Must be a bug in codecov? I’ve tried it locally with `coverage` and there is a hit on this line.

[https://codecov.io/codecov/v4/raw/2019-10-22/864BD623AB0F356A837F226B57D8B7F5/192e95724575f177c6c4ebe22144114301a2b153/361698c7-e19e-4217-91d7-a80d74649715.txt](https://codecov.io/codecov/v4/raw/2019-10-22/864BD623AB0F356A837F226B57D8B7F5/192e95724575f177c6c4ebe22144114301a2b153/361698c7-e19e-4217-91d7-a80d74649715.txt)

If you look at the [build](https://codecov.io/codecov/v4/raw/2019-10-22/864BD623AB0F356A837F226B57D8B7F5/192e95724575f177c6c4ebe22144114301a2b153/b5f1ef3f-7f4d-4ea7-85ab-359ad270d95c.txt):

```auto
<class branch-rate="0.7727" complexity="0" filename="piptools/repositories/pypi.py" line-rate="0.875" name="pypi.py">
    <methods/>
    <lines>
    ...
    <line hits="1" number="46"/>
    <line hits="1" number="48"/>
    ...

```

you’ll see there is no miss on the 47th line.

See [Codecov](https://codecov.io/gh/jazzband/pip-tools/src/192e95724575f177c6c4ebe22144114301a2b153/piptools/repositories/pypi.py#L47)
