Repository navigation
Attempt to further increase test coverage of calendar module #69714
Description
Activity
RohitMediratta commented
on Nov 1, 2015 RohitMedirattamannequinMannequinAuthorMore actionsOpened to submit a patch.
- make patchcheck succeeded
- full testsuite succeeded
- Old coverage
Lib/calendar.py 375 54 86% 511, 519, 541, 608-699, 703 - New coverage
Lib/calendar.py 375 51 86% 608-699, 703
- addedtestsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement
on Nov 1, 2015 Rohit, it looks like your patch is reversed. The lines with a + sign already exist; are the - lines your proposed additions? Equivalently, revision f7db966c9fee already exists; is fb9d4ccbadf0 your new proposed revision?
Assuming the patch is reversed, I suggest keeping the locale=None case, perhaps as a separate test case or loop iteration. Otherwise you are throwing out one test case to add another.
RohitMediratta commented
on Nov 21, 2015 RohitMedirattamannequinMannequinAuthorMore actionsThanks for the comments. I did indeed have the patch reversed. I've resolved it here.
Martin: I had the locale=None case in the patch.
no problem about the second patch of Rohit.
pass the test with default and I have tested the code in the REPL.
The problem with Rohit's patch is that it throws out existing test case.
Sure,
But the patch is correct.
Now, you are right, we have to ask him a new patch where the function is really tested.
The patch needs to be reviewed. If the tests are still relevant and increase coverage, it needs to be converted to a GitHub PR. Otherwise this issue can be closed.
See also bpo-13330.
This hasn't been converted into a PR, if someone would like to we can re-open this issue in the future.
A
6 remaining items
Reopening as a new PR has appeared (#93655).
A
- added 8 commits that reference this issue
on Jun 9, 2022 @bxsx Please leave the issue number off the commit message for all PR branch commits after the first. It spams the issue with unneeded info that is also on the PR itself.
Reacted by Bart Skowron- added a commit that references this issue
on Jul 22, 2023
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:
bugs.python.org fields:
Linked PRs
calendarmodule fully tested #93655