[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Mmm, chocolate... ;-) Okay, consider it done. -- resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I have always tried to be very conservative with backporting stuff that > is not clearly a bugfix but alters any kind of behaviour. I am always > very concerned about compatibility, especially if code has been around > for as long as this code has. > But as I

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have always tried to be very conservative with backporting stuff that is not clearly a bugfix but alters any kind of behaviour. I am always very concerned about compatibility, especially if code has been around for as long as this code has. But as I don't want

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Alright then. I applied the change to the trunk (r76381) and py3k > (r76383). What about release26-maint and release31-maint? IMO this is > not necessary. Unless it might cause compatibility concerns I think it would be better to backport it. In general it's

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Alright then. I applied the change to the trunk (r76381) and py3k (r76383). What about release26-maint and release31-maint? IMO this is not necessary. -- ___ Python tracker

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can confirm it fixes the issue, too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Still, I have attached another version of it with a > slightly smaller try-except clause. Is it feasible to test if the patch > actually solves the problem? Yes, it does. -- ___ Python tracker

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Paul Moore
Paul Moore added the comment: I can run a test on my buildbot - but I may not have a chance until tomorrow. I'll do that and report back unless someone else reports that they have managed to run a test before me. -- ___ Python tracker

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 18 novembre 2009 à 12:11 +, Lars Gustäbel a écrit : > Lars Gustäbel added the comment: > > Any idea why the 2.x buildbots aren't failing? The code is basically the > same. Coincidence? No, the difference is that exception objects carry the tra

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-18 Thread Lars Gustäbel
Lars Gustäbel added the comment: Any idea why the 2.x buildbots aren't failing? The code is basically the same. Coincidence? The patch is okay. Still, I have attached another version of it with a slightly smaller try-except clause. Is it feasible to test if the patch actually solves the problem

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a problem in the Tarfile class, which keeps the underlying `fileobj` open even when the constructor fails. Here is a possible patch. -- assignee: -> lars.gustaebel keywords: +patch nosy: +lars.gustaebel, pitrou stage: -> patch review type: ->

[issue7341] test_tarfile failing (file in use when deleting) on Windows buildbots

2009-11-17 Thread Paul Moore
New submission from Paul Moore : Windows 3.x buildbots are failing in test_tarfile. The problem, as best I can diagnose it, appears to be a failure somewhere in the tarfile module to close files on exceptions. The error is "WindowsError: [Error 32] The process cannot access the file because it i