Message180567
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%. |
|
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 | |
|