]> granicus.if.org Git - python/commit
bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 26 Jun 2019 23:57:49 +0000 (16:57 -0700)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 23:57:49 +0000 (16:57 -0700)
commit7fe81ce47ff6725e2e4d667d499e23dac19834af
treec0f4b9c780b5d0edee15af13e9210f574da9dbfa
parent82654a037211a3466a294d53952926fc87f8403d
bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)

* 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 4c26abd14f1b7242998eb2f7756aa375e0fe714f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_shutil.py
Misc/NEWS.d/next/Tests/2019-06-27-00-37-59.bpo-37421.rVJb3x.rst [new file with mode: 0644]