This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Attempt to further increase test coverage of calendar module
Type: enhancement Stage: patch review
Components: Tests Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Rohit Mediratta, iritkatriel, martin.panter, matrixise, rhettinger, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2015-11-01 09:57 by Rohit Mediratta, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
mywork.patch Rohit Mediratta, 2015-11-01 09:57 Patch to increase coverage for 3 additional lines
mywork_update.patch Rohit Mediratta, 2015-11-21 08:59 Updated patch showing the correct diff review
Messages (7)
msg253836 - (view) Author: Rohit Mediratta (Rohit Mediratta) * Date: 2015-11-01 09:57
Opened 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
msg254421 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-11-09 23:28
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.
msg255047 - (view) Author: Rohit Mediratta (Rohit Mediratta) * Date: 2015-11-21 08:59
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.
msg255416 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2015-11-26 13:14
no problem about the second patch of Rohit.

pass the test with default and I have tested the code in the REPL.
msg255417 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-11-26 13:57
The problem with Rohit's patch is that it throws out existing test case.
msg255423 - (view) Author: Stéphane Wirtel (matrixise) * (Python committer) Date: 2015-11-26 16:22
Sure,

But the patch is correct.

Now, you are right, we have to ask him a new patch where the function is really tested.
msg415815 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-03-22 21:27
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 issue13330.
History
Date User Action Args
2022-04-11 14:58:23adminsetgithub: 69714
2022-03-22 21:27:14iritkatrielsetnosy: + iritkatriel
messages: + msg415815
2015-11-26 16:22:19matrixisesetmessages: + msg255423
2015-11-26 13:57:55serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg255417
2015-11-26 13:14:17matrixisesetnosy: + matrixise
messages: + msg255416
2015-11-21 08:59:10Rohit Medirattasetfiles: + mywork_update.patch

messages: + msg255047
2015-11-09 23:28:17martin.pantersetnosy: + martin.panter

messages: + msg254421
stage: patch review
2015-11-06 21:49:37terry.reedysetnosy: + rhettinger
2015-11-01 09:57:43Rohit Medirattacreate