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=Nonecreated_at=<Date2015-11-01.09:57:43.791>labels= ['type-feature', 'tests']
title='Attempt to further increase test coverage of calendar module'updated_at=<Date2022-03-22.21:27:14.499>user='https://bugs.python.org/RohitMediratta'
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
RohitMedirattamannequin
MannequinAuthor
More actions
Thanks for the comments. I did indeed have the patch reversed. I've resolved it here.
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.
@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.
Activity
RohitMediratta commented on Nov 1, 2015
Opened to submit a patch.
Lib/calendar.py 375 54 86% 511, 519, 541, 608-699, 703
Lib/calendar.py 375 51 86% 608-699, 703
vadmium commented on Nov 9, 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
Thanks 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.
matrixise commented on Nov 26, 2015
no problem about the second patch of Rohit.
pass the test with default and I have tested the code in the REPL.
serhiy-storchaka commented on Nov 26, 2015
The problem with Rohit's patch is that it throws out existing test case.
matrixise commented on Nov 26, 2015
Sure,
But the patch is correct.
Now, you are right, we have to ask him a new patch where the function is really tested.
iritkatriel commented on Mar 22, 2022
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.
AA-Turner commented on Jun 3, 2022
This hasn't been converted into a PR, if someone would like to we can re-open this issue in the future.
A
pythongh-69714: Restore the test thrown out by cb0523e
pythongh-69714: Increase test coverage for `calendar.Locale{Text|HTML…
pythongh-69714: Add missing test cases for custom locale in `calendar…
6 remaining items
AA-Turner commented on Jun 9, 2022
Reopening as a new PR has appeared (#93655).
A
pythongh-69714: Reorder locale in the test case
pythongh-69714: Extract test case
Revert "pythongh-69714: Remove unreachable code (and increase test co…
Revert "Revert "pythongh-69714: Remove unreachable code (and increase…
pythongh-69714: Move the validation to the beginning of the function
pythongh-69714: Increase test coverage for illegal arguments
Revert "pythongh-69714: Add more test cases to `calendar` cmdline"
pythongh-69714: Split tests for LocaleTextCalendar and LocaleHTMLCale…
terryjreedy commented on Feb 24, 2023
@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.
Merge branch 'main' into pythongh-69714/calendar-test-coverage
Merge branch 'main' into pythongh-69714/calendar-test-coverage
gh-69714: Make `calendar` module fully tested (#93655)