Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
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]... !=