New submission from Ned Deily <[email protected]>:
======================================================================
FAIL: test_dump_traceback_threads (test.test_faulthandler.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/3.3/lib/python3.3/test/test_faulthandler.py",
line 365, in test_dump_traceback_threads
self.check_dump_traceback_threads(None)
File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/3.3/lib/python3.3/test/test_faulthandler.py",
line 361, in check_dump_traceback_threads
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Thread 0x[0-9a-f]+:\n(?: File
".*threading.py", line [0-9]+ in [_a-z]+\n){1,3} File "<string>", line 23 in
run\n File ".*threading.py", line [0-9]+ in _bootstrap_inner\n File
".*threading.py", line [0-9]+ in _bootstrap\n\nCurrent thread XXX:\n File
"<string>", line 10 in dump\n File "<string>", line 28 in <module>$' not found
in 'Thread 0x0000000103a4a000:\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 184 in wait\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 330 in wait\n File "<string>", line 23 in run\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 639 in _bootstrap_inner\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 616 in _bootstrap\n\nCurrent thr
ead XXX:\n File "<string>", line 10 in dump\n File "<string>", line 28 in
<module>'
======================================================================
FAIL: test_dump_traceback_threads_file
(test.test_faulthandler.FaultHandlerTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/3.3/lib/python3.3/test/test_faulthandler.py",
line 369, in test_dump_traceback_threads_file
self.check_dump_traceback_threads(filename)
File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/3.3/lib/python3.3/test/test_faulthandler.py",
line 361, in check_dump_traceback_threads
self.assertRegex(output, regex)
AssertionError: Regex didn't match: '^Thread 0x[0-9a-f]+:\n(?: File
".*threading.py", line [0-9]+ in [_a-z]+\n){1,3} File "<string>", line 23 in
run\n File ".*threading.py", line [0-9]+ in _bootstrap_inner\n File
".*threading.py", line [0-9]+ in _bootstrap\n\nCurrent thread XXX:\n File
"<string>", line 8 in dump\n File "<string>", line 28 in <module>$' not found
in 'Thread 0x0000000105215000:\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 184 in wait\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 330 in wait\n File "<string>", line 23 in run\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 639 in _bootstrap_inner\n File
"/py/dev/default/b10.7_t10.7_x4.3_cclang_d/fw/root/Library/Frameworks/pytest_10_7.framework/Versions/...",
line 616 in _bootstrap\n\nCurrent thre
ad XXX:\n File "<string>", line 8 in dump\n File "<string>", line 28 in
<module>'
----------------------------------------------------------------------
Ran 27 tests in 20.582s
FAILED (failures=2)
test test_faulthandler failed
The two failing tests call check_dump_traceback_threads which has a regex to
find threading.py in the traceback but the path is truncated in the traceback
so "threading.py" doesn't appear.
----------
components: Tests
messages: 166531
nosy: haypo, ned.deily
priority: low
severity: normal
status: open
title: test_faulthandler can fail if install path is too long
versions: Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15463>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com