Author sdaoden
Recipients ezio.melotti, sdaoden
Date 2011-03-16.13:42:21
SpamBayes Score 6.29193e-10
Marked as misclassified No
Message-id <1300282941.87.0.270321061792.issue11452@psf.upfronthosting.co.za>
In-reply-to
Content
Signore Melotti, i'm making you nosy because you're the one
which committed to this file last (db7385).

I've tried a bit to write a patch, but my simple os.path.realpath()
solution didn't work.  I've got no idea of the test framework,
nor of the tracer, so i'm the wrong person here anyway.
(It would have been interesting why test_trace.py fails when run
as part of the test suite, but succeeds if called directly,
even from within the same directory.)
Once again i attach failed test output.

Please decide if this issue is to be closed or not,
i can't help at all.


12:49 ~/usr/opt $ python3 -E -Wd -m test -r -w
== CPython 3.3a0 (default:a064cca38425, Mar 16 2011, 12:14:52) [GCC 4.2.1 (Apple Inc. build 5664)]
==   Darwin-10.6.0-i386-64bit little-endian
[...]
326 tests OK.
1 test failed:
    test_trace

Re-running failed tests in verbose mode
Re-running test 'test_trace' in verbose mode
test_loop_caller_importing (test.test_trace.TestCallers) ... FAIL
test_coverage (test.test_trace.TestCoverage) ... ok
test_coverage_ignore (test.test_trace.TestCoverage) ... ok
test_issue9936 (test.test_trace.TestCoverage) ... ok
test_inst_method_calling (test.test_trace.TestFuncs) ... FAIL
test_loop_caller_importing (test.test_trace.TestFuncs) ... FAIL
test_simple_caller (test.test_trace.TestFuncs) ... FAIL
test_linear_methods (test.test_trace.TestLineCounts) ... FAIL
test_trace_func_generator (test.test_trace.TestLineCounts) ... FAIL
test_trace_list_comprehension (test.test_trace.TestLineCounts) ... FAIL
test_traced_func_importing (test.test_trace.TestLineCounts) ... FAIL
test_traced_func_linear (test.test_trace.TestLineCounts) ... FAIL
test_traced_func_loop (test.test_trace.TestLineCounts) ... FAIL
test_exec_counts (test.test_trace.TestRunExecCounts) ... ERROR
test_ignored (test.test_trace.Test_Ignore) ... ok

======================================================================
ERROR: test_exec_counts (test.test_trace.TestRunExecCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 217, in test_exec_counts
    self.assertEqual(self.tracer.results().counts[k], expected[k])
KeyError: ('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 43)

======================================================================
FAIL: test_loop_caller_importing (test.test_trace.TestCallers)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 286, in test_loop_caller_importing
    self.assertEqual(self.tracer.results().callers, expected)
AssertionError: {(('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_tra [truncated]... != {(('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', [truncated]...
Diff is 2446 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_inst_method_calling (test.test_trace.TestFuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 259, in test_inst_method_calling
    self.assertEqual(self.tracer.results().calledfuncs, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trac [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace',  [truncated]...
Diff is 926 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_loop_caller_importing (test.test_trace.TestFuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 246, in test_loop_caller_importing
    self.assertEqual(self.tracer.results().calledfuncs, expected)
AssertionError: {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 'te [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace',  [truncated]...
Diff is 1310 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_simple_caller (test.test_trace.TestFuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 234, in test_simple_caller
    self.assertEqual(self.tracer.results().calledfuncs, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trac [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace',  [truncated]...
- {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trace', 'traced_func_linear'): 1,
?                           --  ^^^^

+ {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', 'traced_func_linear'): 1,
?                             ^^

-  ('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 'test_trace', 'traced_func_simple_caller'): 1}
?                           --  ^^^^

+  ('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 'test_trace', 'traced_func_simple_caller'): 1}
?                             ^^


======================================================================
FAIL: test_linear_methods (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 190, in test_linear_methods
    self.assertEqual(tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 84): 1} != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 84): 1}
- {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 84): 1}
?                           --  ^^^^

+ {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 84): 1}
?                             ^^


======================================================================
FAIL: test_trace_func_generator (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 158, in test_trace_func_generator
    self.assertEqual(self.tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 67): 11, ( [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 67): 11, ('/Us [truncated]...
Diff is 1376 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_trace_list_comprehension (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 173, in test_trace_list_comprehension
    self.assertEqual(self.tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 71): 10, ( [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 75): 12, ('/Us [truncated]...
Diff is 916 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_traced_func_importing (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 143, in test_traced_func_importing
    self.assertEqual(self.tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 3): [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 3): [truncated]...
- {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 49): 1,
?                           --  ^^^^

+ {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 49): 1,
?                             ^^

   ('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 2): 1,
   ('/Users/steffen/usr/opt/py3k/lib/python3.3/test/tracedmodules/testmod.py', 3): 1}

======================================================================
FAIL: test_traced_func_linear (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 119, in test_traced_func_linear
    self.assertEqual(self.tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 39): 1, (' [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 39): 1, ('/Use [truncated]...
Diff is 912 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_traced_func_loop (test.test_trace.TestLineCounts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py", line 131, in test_traced_func_loop
    self.assertEqual(self.tracer.results().counts, expected)
AssertionError: {('/Users/steffen/usr/opt/.cpython/lib/python3.3/test/test_trace.py', 45): 5, (' [truncated]... != {('/Users/steffen/usr/opt/py3k/lib/python3.3/test/test_trace.py', 43): 1, ('/Use [truncated]...
Diff is 912 characters long. Set self.maxDiff to None to see it.

----------------------------------------------------------------------
Ran 15 tests in 5.113s

FAILED (failures=10, errors=1)
test test_trace failed -- multiple errors occurred


13:21 ~/usr/opt $ python3 -E -Wd -m test -r -w test_trace
Using random seed 8435571
[1/1] test_trace
1 test OK.
History
Date User Action Args
2011-03-16 13:42:21sdaodensetrecipients: + sdaoden, ezio.melotti
2011-03-16 13:42:21sdaodensetmessageid: <1300282941.87.0.270321061792.issue11452@psf.upfronthosting.co.za>
2011-03-16 13:42:21sdaodenlinkissue11452 messages
2011-03-16 13:42:21sdaodencreate