Title: Expand test coverage in shutil
Type: Stage: resolved
Components: Tests Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ncoghlan Nosy List: ev, ncoghlan, python-dev, tarek
Priority: normal Keywords: patch

Created on 2011-03-15 21:31 by ev, last changed 2011-03-16 18:01 by python-dev. This issue is now closed.

File name Uploaded Description Edit
increase_test_shutil_coverage.patch ev, 2011-03-15 21:31
Messages (2)
msg131041 - (view) Author: Evan Dandrea (ev) * Date: 2011-03-15 21:31
The attached patch increases the coverage in shutil.  It makes the following changes:
 - Tests the code paths for file and directory copies across filesystems by mocking out rename.
 - Adds a test for shutil.copy.
 - Adds a test for shutil.copy2.
 - Tests shutil.unpack_archive with the format specified.
 - Tests the code path for creating the target directory in _make_tarball.

I have tested this on Ubuntu natty and OSX 10.6.6.  Note that this will fail until is applied.
msg131152 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2011-03-16 18:01
New changeset b313b05221a9 by Nick Coghlan in branch '3.2':
Close #11560: Improve test coverage of shutil

New changeset 5b61334bb776 by Nick Coghlan in branch 'default':
Merge fix for #11560 from 3.2
Date User Action Args
2011-03-16 18:01:15python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg131152

resolution: fixed
stage: resolved
2011-03-16 16:54:21ncoghlansetassignee: ncoghlan

nosy: + ncoghlan
2011-03-15 21:31:48evcreate