[issue15463] test_faulthandler can fail if install path is too long

Chris Jerdonek report at bugs.python.org
Fri Jul 27 04:34:02 CEST 2012


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

This might be obvious to some people, but for background purposes, this seems to be where the file name gets truncated (in the dump_frame() function):

    write(fd, "\"", 1);
    dump_ascii(fd, code->co_filename);
    write(fd, "\"", 1);

http://hg.python.org/cpython/file/ddf15cd9be4a/Python/traceback.c#l564

Out of curiosity, I wonder if we have a test to check the formatting of tracebacks for long file names, which would be nice to have.  I didn't see one.

----------
nosy: +cjerdonek

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15463>
_______________________________________


More information about the Python-bugs-list mailing list