Message243416
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? |
|
Date |
User |
Action |
Args |
2015-05-17 16:59:16 | terry.reedy | set | recipients:
+ terry.reedy, belopolsky, larry, serhiy.storchaka |
2015-05-17 16:59:16 | terry.reedy | set | messageid: <1431881956.1.0.766617501436.issue24215@psf.upfronthosting.co.za> |
2015-05-17 16:59:16 | terry.reedy | link | issue24215 messages |
2015-05-17 16:59:15 | terry.reedy | create | |
|