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.

Author terry.reedy
Recipients belopolsky, larry, serhiy.storchaka, terry.reedy
Date 2015-05-17.16:59:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431881956.1.0.766617501436.issue24215@psf.upfronthosting.co.za>
In-reply-to
Content
Since test files should no longer have test_main, test_trace should no longer look for one.  (And indeed, test_trace itself should be converted, which looks trivial.) The offending line is
  cmd='from test import test_pprint; test_pprint.test_main()'):
The use of 'test_main' is just a convenience; it could just as well be 'trace_main'.  But there is no need to put anything extra in the traced file.  The following works for me on on 3.4.3
                  cmd='import unittest, test.test_pprint;'
                  'unittest.main(test.test_pprint, exit=False)'):

This solves the problem of this issue, but the tracing takes about 10 of 14.5 seconds total, An alternative might be considered, but test_coverage is tied to the output from pprint run by unittest.  Alexander, can you suggest an alternate target and output test that would still fulfill the intent of the test?
History
Date User Action Args
2015-05-17 16:59:16terry.reedysetrecipients: + terry.reedy, belopolsky, larry, serhiy.storchaka
2015-05-17 16:59:16terry.reedysetmessageid: <1431881956.1.0.766617501436.issue24215@psf.upfronthosting.co.za>
2015-05-17 16:59:16terry.reedylinkissue24215 messages
2015-05-17 16:59:15terry.reedycreate