Re: [Python-Dev] cpython (merge 3.4 -> default): Added tests for more builtin types.

In article <20150516183940.21146.77232@psf.io>, serhiy.storchaka <python-checkins@python.org> wrote:
https://hg.python.org/cpython/rev/7b350f712c0e changeset: 96099:7b350f712c0e parent: 96096:f0c94892ac31 parent: 96098:955dffec3d94 user: Serhiy Storchaka <storchaka@gmail.com> date: Sat May 16 21:35:56 2015 +0300 summary: Added tests for more builtin types. Made test_pprint discoverable.
files: Lib/test/test_pprint.py | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-)
====================================================================== ERROR: test_coverage (test.test_trace.TestCoverage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 312, in test_coverage self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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 "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 327, in test_coverage_ignore self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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' Also breaks 3.4. -- Ned Deily, nad@acm.org

On 17.05.15 02:44, Ned Deily wrote:
In article <20150516183940.21146.77232@psf.io>, serhiy.storchaka <python-checkins@python.org> wrote:
https://hg.python.org/cpython/rev/7b350f712c0e changeset: 96099:7b350f712c0e parent: 96096:f0c94892ac31 parent: 96098:955dffec3d94 user: Serhiy Storchaka <storchaka@gmail.com> date: Sat May 16 21:35:56 2015 +0300 summary: Added tests for more builtin types. Made test_pprint discoverable.
files: Lib/test/test_pprint.py | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-)
====================================================================== ERROR: test_coverage (test.test_trace.TestCoverage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 312, in test_coverage self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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 "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 327, in test_coverage_ignore self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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'
Also breaks 3.4.
Thank you Ned. Opened issue24215 for this because just restoring test_main perhaps not the best way.

On 5/17/2015 1:57 AM, Serhiy Storchaka wrote:
On 17.05.15 02:44, Ned Deily wrote:
In article <20150516183940.21146.77232@psf.io>, serhiy.storchaka <python-checkins@python.org> wrote:
https://hg.python.org/cpython/rev/7b350f712c0e changeset: 96099:7b350f712c0e parent: 96096:f0c94892ac31 parent: 96098:955dffec3d94 user: Serhiy Storchaka <storchaka@gmail.com> date: Sat May 16 21:35:56 2015 +0300 summary: Added tests for more builtin types. Made test_pprint discoverable.
files: Lib/test/test_pprint.py | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-)
====================================================================== ERROR: test_coverage (test.test_trace.TestCoverage) ---------------------------------------------------------------------- Traceback (most recent call last): File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 312, in test_coverage self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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 "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 327, in test_coverage_ignore self._coverage(tracer) File "/py/dev/3x/root/uxd/lib/python3.5/test/test_trace.py", line 305, in _coverage tracer.run(cmd) File "/py/dev/3x/root/uxd/lib/python3.5/trace.py", line 500, in run self.runctx(cmd, dict, dict) File "/py/dev/3x/root/uxd/lib/python3.5/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'
Also breaks 3.4.
Thank you Ned. Opened issue24215 for this because just restoring test_main perhaps not the best way.
test_trace can be easily modified to use test_pprint as revised. See issue. -- Terry Jan Reedy
participants (3)
-
Ned Deily
-
Serhiy Storchaka
-
Terry Reedy