]> granicus.if.org Git - python/commit
bpo-37421: Fix test_shutil: don't leak temporary files (GH-14416)
authorVictor Stinner <vstinner@redhat.com>
Wed, 26 Jun 2019 23:39:53 +0000 (01:39 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 23:39:53 +0000 (01:39 +0200)
commit4c26abd14f1b7242998eb2f7756aa375e0fe714f
tree225f25e2989c063f9a34119748120d1e803ce44c
parent06a8916cf465f139dca958685b0da899364b8a8c
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.
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]