You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Increase test coverage for the statistics module #84511
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-05-13.10:30:59.362>created_at=<Date2020-04-19.16:24:48.313>labels= ['type-feature', 'tests', '3.9']
title='Increase test coverage for the statistics module'updated_at=<Date2020-05-13.13:32:32.480>user='https://github.com/tzabal'
The statistics module is already highly tested but it seems that there are 4 statements [0] that are not executed by the equivalent unit tests. Specifically, 3 statements which are part of the _convert, _find_lteq, and _find_rteq functions, and 1 statement of the harmonic_mean function.
Steven, the conversation happened in the GitHub PR comments. The PR went through multiple iterations of code review, by both Kyle Stanley and myself, and I even waited an extra couple of weeks to see if anyone had any more comments before merging it...
Perhaps you missed it because you're not in the CODEOWNERS so don't automatically get notified by GitHub?
Perhaps you missed it because you're not in the CODEOWNERS so don't
automatically get notified by GitHub?
That's quite possible. I can't fix that as Github considers everything
to do with my computer and browser too old. Until I can get a new
computer, I'm effectively unable to use Github, so even if I was
notified, I probably couldn't have done much.
This wasn't a complaint, I'm grateful for everyone involved. Thanks
again!
remilapeyre commented on May 13, 2020
remilapeyremannequin
Mannequin
More actions
> Perhaps you missed it because you're not in the CODEOWNERS so don't
> automatically get notified by GitHub?
That's quite possible. I can't fix that as Github considers everything
to do with my computer and browser too old.
I don't think you need to use the Github interface to change this, you can update the .github/CODEOWNERS file and push the change in a new commit.
Activity
tzabal commentedon Apr 19, 2020
The statistics module is already highly tested but it seems that there are 4 statements [0] that are not executed by the equivalent unit tests. Specifically, 3 statements which are part of the
_convert,_find_lteq, and_find_rteqfunctions, and 1 statement of theharmonic_meanfunction.[0] https://codecov.io/gh/python/cpython/src/8aea4b3605059e243f1827d9328d6fc8d698c0a7/Lib/statistics.py
taleinat commentedon May 13, 2020
New changeset b809717 by Tzanetos Balitsaris in branch 'master':
bpo-40331: Increase test coverage for the statistics module (GH-19608)
b809717
taleinat commentedon May 13, 2020
Tzanetos, thanks for the report, PR, patience iterating through several rounds of code review comments, and overall great work!
stevendaprano commentedon May 13, 2020
*blink*
How did I miss this entire thing? Where was the code review?
Thanks Tal for shepherding this through, and thanks Tzanetos for caring
about the unit tests.
taleinat commentedon May 13, 2020
Steven, the conversation happened in the GitHub PR comments. The PR went through multiple iterations of code review, by both Kyle Stanley and myself, and I even waited an extra couple of weeks to see if anyone had any more comments before merging it...
Perhaps you missed it because you're not in the CODEOWNERS so don't automatically get notified by GitHub?
stevendaprano commentedon May 13, 2020
That's quite possible. I can't fix that as Github considers everything
to do with my computer and browser too old. Until I can get a new
computer, I'm effectively unable to use Github, so even if I was
notified, I probably couldn't have done much.
This wasn't a complaint, I'm grateful for everyone involved. Thanks
again!
remilapeyre commentedon May 13, 2020
I don't think you need to use the Github interface to change this, you can update the .github/CODEOWNERS file and push the change in a new commit.