[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b9a0a091566 by Éric Araujo in branch 'default': Close file handles in a timely manner in packaging.database (#12504). http://hg.python.org/cpython/rev/2b9a0a091566 -- nosy: +python-dev ___ Python tracke

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-08 Thread Éric Araujo
Éric Araujo added the comment: Excellent! I will apply this. > I looked through the rest of database.py and did not see any other > generators that appeared to erroneously hold a file handle open. Me neither. Thanks for checking. > In addition there is one generator function (list_distinfo_f

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-07 Thread Thomas Holmes
Changes by Thomas Holmes : Added file: http://bugs.python.org/file22612/6e15ba060803.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-07 Thread Thomas Holmes
Thomas Holmes added the comment: I have made the change you suggested, creating a new list and simply amending to minimize the diff. This new patch has been attached. I looked through the rest of database.py and did not see any other generators that appeared to erroneously hold a file handle

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-07 Thread Thomas Holmes
Thomas Holmes added the comment: Oh and thank you very much for your input. My apologies for the initial 9 e-mail spam when I created the issue, I bumbled the remote HG repository patch generation :) -- ___ Python tracker

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-07 Thread Thomas Holmes
Thomas Holmes added the comment: The output in my initial message is the output of the tests with them enabled but pre database.py patch. Once the patch is applied all packaging tests that run on my system pass. I was 50/50 on whether or not to use the internal function and I just sort of en

[issue12504] packaging: fix uninstall and stop skipping its tests

2011-07-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for that! I agree that it’s a fake optimization to work with generators instead of lists when the list is small or when we depend on other resources like file handles. There are a few methods we could change in the database module. The patch looks good