Message180567
| Author |
chris.jerdonek |
| Recipients |
brett.cannon, chris.jerdonek, ezio.melotti, zach.ware |
| Date |
2013年01月25日.11:13:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1359112416.01.0.705389289502.issue16968@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I confirmed the above by changing regrtest as follows in the patch (moving the decorator from load_tests()), and trying both placements of the loadTestsFromModule() line. One gives the warning and one does not:
if test_runner is None:
loader = unittest.TestLoader()
#tests = loader.loadTestsFromModule(the_module)
@support.reap_threads
def test_runner():
try:
tests = loader.loadTestsFromModule(the_module)
support.run_unittest(tests)
finally:
support.reap_children()
test_runner()
This is mostly a suggestion though -- not 100%. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年01月25日 11:13:36 | chris.jerdonek | set | recipients:
+ chris.jerdonek, brett.cannon, ezio.melotti, zach.ware |
| 2013年01月25日 11:13:36 | chris.jerdonek | set | messageid: <1359112416.01.0.705389289502.issue16968@psf.upfronthosting.co.za> |
| 2013年01月25日 11:13:35 | chris.jerdonek | link | issue16968 messages |
| 2013年01月25日 11:13:35 | chris.jerdonek | create |
|