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:36chris.jerdoneksetrecipients: + chris.jerdonek, brett.cannon, ezio.melotti, zach.ware
2013-01-25 11:13:36chris.jerdoneksetmessageid: <1359112416.01.0.705389289502.issue16968@psf.upfronthosting.co.za>
2013-01-25 11:13:35chris.jerdoneklinkissue16968 messages
2013-01-25 11:13:35chris.jerdonekcreate