[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2010-07-31 Thread R. David Murray
R. David Murray added the comment: Done in r83379. Note that only the try/except was backported; owner and group don't exist in the 2.6 make_archive signature, nor does the test file exist in 2.6. -- resolution: accepted -> fixed stage: -> committed/rejected status: pending -> close

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2010-07-31 Thread Éric Araujo
Éric Araujo added the comment: Looks like this hasn’t been merged to 2.6 yet. -- nosy: +barry, merwok status: closed -> pending versions: -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-24 Thread Tarek Ziadé
Tarek Ziadé added the comment: Done in r75659, r75662 and r75663 (merge in 2.6 maint. waiting for 2.6.4 final tag to be done) Thanks ! -- status: open -> closed versions: +Python 2.6, Python 3.1 ___ Python tracker

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Ezio Melotti
Ezio Melotti added the comment: == ERROR: test_make_archive_owner_group (distutils.tests.test_archive_util.ArchiveUtilTestCase) -- Traceback (most recent call l

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: I see two distinct points (besides test_make_archive_owner_group): 1- having a try..finally when changing the current working dir (I'll do this thanks for the patch) 2- dealing with calls made on archive_util.make_archive() when zlib is not available. What error

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Ezio Melotti
New submission from Ezio Melotti : archive_util.make_archive() changes the value of the cwd, but if an error is raised in "filename = func(base_name, base_dir, **kwargs)", the cwd is not restored. This may happen if zlib is not available and causes other ~60 tests to fail while running regrtest.p