add sed pattern for truncated module paths - #163
Conversation
On systems with a very long build path, better-exceptions truncates the path in its output (appending "..."). The existing normalization script uses sed to replace such paths with a dummy value, but it only matched non-truncated paths(Those ending with >'). As a result, tests failed because the truncated path was not being normalized. Add an extra sed command to match module paths ending with "..." and replace them with the same dummy string, so that the diff comparison works correctly regardless of whether the path is truncated.
|
Sorry, GitHub loves changing the layout of the page on mobile. Didn't mean to close. TIL this package is on Debian's registry! Thanks for the PR. I'm currently in the midst of regaining access to my pypi accounts - is a merge sufficient or is a new version mandatory to help out on the Debian side of things? |
Hello, Yes, better-exceptions is available in Debian, but due to a very small difference in how packages are built between Debian and Ubuntu (the build path is longer in Ubuntu), building better-exceptions in Ubuntu was failing. I fixed this issue with a patch. Just merging is enough. Thanks. |
|
Thank you again! Let me know if there's anything else :) |
Thank you, nothing else is needed. |
On systems with a long build path, better-exceptions truncates the path in its output (appending "..."). The existing normalization script uses sed to replace such paths with a dummy value, but it only matched non-truncated paths(Those ending with >'). As a result, tests failed because the truncated path was not being normalized.
Add an extra sed command to match module paths ending with "..." and replace them with the same dummy string, so that the diff comparison works correctly regardless of whether the path is truncated.
See:
The Debian bug page: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1129141
The Ubuntu build log: https://launchpadlibrarian.net/866856463/buildlog_ubuntu-stonking-amd64.python-better-exceptions_0.4.0-2_BUILDING.txt.gz