Issue 11551: test_dummy_thread.py test coverage improvement (original) (raw)

Issue11551

Created on 2011-03-15 05:31 by denversc, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_dummy_thread_test_coverage_improvement.patch denversc,2011-03-15 05:31 review
test_dummy_thread_test_coverage_improvement_v2.patch denversc,2011-03-15 05:34 ignore the previous patch; it had an unintentional change to support.py review
issue11551.patch orsenthil,2016-09-07 09:43 review
issue11551.patch orsenthil,2016-09-08 09:23 review
Messages (9)
msg130957 - (view) Author: Denver Coneybeare (denversc) * Date: 2011-03-15 05:31
The attached patch increases the test coverage of the module _dummy_thread from 78% to 100%.
msg139070 - (view) Author: Sandro Tosi (sandro.tosi) * (Python committer) Date: 2011-06-25 14:24
I run a review on rietveld, just minor stuff (even though I don't see the 100% coverage).
msg151641 - (view) Author: Sandro Tosi (sandro.tosi) * (Python committer) Date: 2012-01-19 16:18
Hi Denver, do you have the time to address the review on rietveld and propose a new patch?
msg151760 - (view) Author: Denver Coneybeare (denversc) * Date: 2012-01-22 04:29
I've looked at the review (thanks for the review) and can submit an updated patch. I don't have the Python source code pulled down to my PC anymore so it might take a week or two before I'm able to update the patch and test it out. I imagine that's not too much of a problem though :)
msg223332 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-07-17 13:06
@Denver are you still interested in working on this as a week or two has passed? :)
msg258751 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-01-21 10:07
Thanks for the patch, Denver. Two things: 1. MockFunction needs to be replaced with unittest.mock.Mock. 2. Comments from Sandro and Ezio needs to be addressed.
msg274785 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2016-09-07 09:43
I've updated the patch to use unittest.mock, the removed the old style way of exercising it.
msg274989 - (view) Author: Senthil Kumaran (orsenthil) * (Python committer) Date: 2016-09-08 09:23
Here is an updated patch that increases the coverage to 100% and has some pep8 style improvements. shannon-2: senthil$ ./python.exe -m test.regrtest test_dummy_thread Run tests sequentially 0:00:00 [1/1] test_dummy_thread 1 test OK. Total duration: 23 ms Tests result: SUCCESS shannon-2: senthil$ ./python.exe -m coverage run --pylib --source=_dummy_thread Lib/test/regrtest.py test_dummy_thread Run tests sequentially 0:00:00 [1/1] test_dummy_thread 1 test OK. Total duration: 82 ms Tests result: SUCCESS shannon-2: senthil$ ./python.exe -m coverage report --show-missing Name Stmts Miss Cover Missing ---------------------------------------------------- Lib/_dummy_thread.py 64 0 100% Since these are restricted to test improvements and have addressed the comments from previous reviews, I am going ahead with committing this patch. If there are any further comments, we can address them in subsequent commits.
msg274995 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-08 09:48
New changeset 08f446bf45a7 by Senthil Kumaran in branch '3.5': Issue11551 - Increase the test coverage of _dummy_thread module to 100%. https://hg.python.org/cpython/rev/08f446bf45a7 New changeset d69e0df64b11 by Senthil Kumaran in branch 'default': [merge from 3.5] Issue11551 - Increase the test coverage of _dummy_thread module to 100%. https://hg.python.org/cpython/rev/d69e0df64b11
History
Date User Action Args
2022-04-11 14:57:14 admin set github: 55760
2016-09-08 09:48:51 orsenthil set status: open -> closedresolution: fixedstage: needs patch -> resolved
2016-09-08 09:48:08 python-dev set nosy: + python-devmessages: +
2016-09-08 09:23:41 orsenthil set files: + issue11551.patchmessages: +
2016-09-07 09:43:59 orsenthil set files: + issue11551.patchnosy: + orsenthilmessages: +
2016-01-21 19:24:14 BreamoreBoy set nosy: - BreamoreBoy
2016-01-21 10:07:01 berker.peksag set versions: + Python 3.5, Python 3.6, - Python 3.3, Python 3.4nosy: + berker.peksagmessages: + stage: patch review -> needs patch
2015-12-14 02:16:04 josephgordon set nosy: + josephgordon
2014-07-17 13:56:18 brian.curtin set nosy: - brian.curtin
2014-07-17 13:06:59 BreamoreBoy set nosy: + BreamoreBoymessages: +
2013-01-22 12:33:16 ezio.melotti set keywords: + easynosy: + ezio.melotti, Ramchandra Aptestage: patch reviewversions: + Python 3.4
2012-01-22 04:29:28 denversc set messages: +
2012-01-19 16🔞35 sandro.tosi set messages: +
2011-06-25 14:24:00 sandro.tosi set nosy: + sandro.tosimessages: +
2011-03-15 05:36:49 denversc set nosy: + brett.cannon
2011-03-15 05:34:20 denversc set files: + test_dummy_thread_test_coverage_improvement_v2.patchnosy:brian.curtin, denversc
2011-03-15 05:31:15 denversc create