Closed clalancette closed 6 months ago
Thanks 🙏
Ideally I'd like to keep separate the behavioral fix and API/signature change to streamline fix back porting to older distros. Regarding the mutable defaults 👍 (hence the frecebtly added file), however what would you think about making all ARGS keyed-args and keeping the order as is ?
Finally is it possible to trigger a windows debug job once the PR splitted to make sure the CI is happy about it ?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 88.94%. Comparing base (
fb22661
) to head (4f136df
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
however what would you think about making all ARGS keyed-args and keeping the order as is ?
Actually, to be perfectly frank we could just leave the order as-is and remove all of the default arguments. This function is always called with all of its arguments. So I think I'll open a separate PR to do that.
And see #318 for the rest of the fixes.
Cheers!
@Mergifyio backport jazzy
backport jazzy
From what I can tell, it looks like lxml has a bug where it doesn't properly track references to objects via the find() method. This manifests on Windows debug as a crash after we have stopped using the object, but I believe that by that point the underlying memory has already been freed. Windows Debug in particular is sensitive to this.
Fix it by doing a deepcopy of the object returned from the find(). This code isn't performance sensitive, so it shouldn't be a big deal to do it here, and it fixes the bug in my testing.