This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients chris.jerdonek, ned.deily, vstinner
Date 2012-07-28.19:46:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here is a patch to the tests that allows the tests to pass when the install path is long while still checking that file names show up correctly in the traceback.

One advantage of this patch's approach is that it provides a way to test the rendering of long paths on all systems/installs.  Simply create a test case by setting the scriptname to, for example--

scriptname = 'test_long_file_path_' + 200 * 'x'

This patch is just an illustration for discussion purposes and is not meant as a final patch.

Also, this patch does not fix the issue of the file names of long paths not getting rendered (which can be addressed by setting the limit to 500 as we discussed).  However, as I have noted this patch provides a way to test such a fix.
Date User Action Args
2012-07-28 19:46:57chris.jerdoneksetrecipients: + chris.jerdonek, vstinner, ned.deily
2012-07-28 19:46:57chris.jerdoneksetmessageid: <>
2012-07-28 19:46:56chris.jerdoneklinkissue15463 messages
2012-07-28 19:46:55chris.jerdonekcreate