summaryrefslogtreecommitdiffstats
path: root/Lib/test/setup_testcppext.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-13 17:49:48 (GMT)
committerGitHub <noreply@github.com>2022-06-13 17:49:48 (GMT)
commitdc6dd8ee873ed96027d30c8a2e96518657d46241 (patch)
tree8f5be32449584b2de02020bbb82cb9cbdf50c146 /Lib/test/setup_testcppext.py
parent3d1c080591910c9c1ee80e5465ce7c91b67c907d (diff)
downloadcpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.zip
cpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.tar.gz
cpython-dc6dd8ee873ed96027d30c8a2e96518657d46241.tar.bz2
gh-93353: Fix importlib.resources._tempfile() finalizer (GH-93377)
Fix the importlib.resources.as_file() context manager to remove the temporary file if destroyed late during Python finalization: keep a local reference to the os.remove() function. Patch by Victor Stinner. (cherry picked from commit 443ca731d6b1267fe2f92985e0490460c95e44a8) Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/setup_testcppext.py')
0 files changed, 0 insertions, 0 deletions