Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-37421: Fix test_shutil: don't leak temporary files#14416

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:test_shutil_tmpdirCopy head branch name to clipboard
Jun 26, 2019
Merged

bpo-37421: Fix test_shutil: don't leak temporary files#14416
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:test_shutil_tmpdirCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Jun 26, 2019

Copy link
Copy Markdown
Member
  • Fix typo in supports_file2file_sendfile(); ensure that dst is
    removed
  • Fix test_copytree_custom_copy_function(): remove dst tree.
    Use support.rmtree() rather than shutil.rmtree() to remove
    temporary directories: support tries harder.

https://bugs.python.org/issue37421

* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@vstinner vstinner deleted the test_shutil_tmpdir branch June 26, 2019 23:39
@bedevere-bot

Copy link
Copy Markdown

GH-14417 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 26, 2019
* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
(cherry picked from commit 4c26abd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @vstinner, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4c26abd14f1b7242998eb2f7756aa375e0fe714f 3.7

@vstinner

Copy link
Copy Markdown
Member Author

I checked: Python 3.7 is not affected, it doesn't contain the code which had the two bugs.

miss-islington added a commit that referenced this pull request Jun 26, 2019
* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
(cherry picked from commit 4c26abd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
* Fix typo in supports_file2file_sendfile(); ensure that dst is
  removed
* Fix test_copytree_custom_copy_function(): remove dst tree.
  Use support.rmtree() rather than shutil.rmtree() to remove
  temporary directories: support tries harder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.