Terry J. Reedy added the comment: 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? ---------- nosy: +terry.reedy stage: -> needs patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24215> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com