Message243386
Converting test_pprint to be unittest discoverable had broke the test_trace that uses test_main from test_pprint.
======================================================================
ERROR: test_coverage (test.test_trace.TestCoverage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_trace.py", line 312, in test_coverage
self._coverage(tracer)
File "/home/serhiy/py/cpython/Lib/test/test_trace.py", line 305, in _coverage
tracer.run(cmd)
File "/home/serhiy/py/cpython/Lib/trace.py", line 500, in run
self.runctx(cmd, dict, dict)
File "/home/serhiy/py/cpython/Lib/trace.py", line 508, in runctx
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
AttributeError: module 'test.test_pprint' has no attribute 'test_main'
======================================================================
ERROR: test_coverage_ignore (test.test_trace.TestCoverage)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_trace.py", line 327, in test_coverage_ignore
self._coverage(tracer)
File "/home/serhiy/py/cpython/Lib/test/test_trace.py", line 305, in _coverage
tracer.run(cmd)
File "/home/serhiy/py/cpython/Lib/trace.py", line 500, in run
self.runctx(cmd, dict, dict)
File "/home/serhiy/py/cpython/Lib/trace.py", line 508, in runctx
exec(cmd, globals, locals)
File "<string>", line 1, in <module>
AttributeError: module 'test.test_pprint' has no attribute 'test_main'
----------------------------------------------------------------------
The simplest way to fix the regression is to restore test_main in test_pprint. But for now test_pprint is much larger and slower than it was when test_trace was written. Perhaps it is not the best example for testing tracing. Are there better ideas? |
|
Date |
User |
Action |
Args |
2015-05-17 05:55:50 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, belopolsky, larry |
2015-05-17 05:55:50 | serhiy.storchaka | set | messageid: <1431842150.15.0.237267681297.issue24215@psf.upfronthosting.co.za> |
2015-05-17 05:55:49 | serhiy.storchaka | link | issue24215 messages |
2015-05-17 05:55:48 | serhiy.storchaka | create | |
|