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 serhiy.storchaka
Recipients belopolsky, larry, serhiy.storchaka
Date 2015-05-17.05:55:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431842150.15.0.237267681297.issue24215@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2015-05-17 05:55:50serhiy.storchakasetrecipients: + serhiy.storchaka, belopolsky, larry
2015-05-17 05:55:50serhiy.storchakasetmessageid: <1431842150.15.0.237267681297.issue24215@psf.upfronthosting.co.za>
2015-05-17 05:55:49serhiy.storchakalinkissue24215 messages
2015-05-17 05:55:48serhiy.storchakacreate