Ian added the comment:
I'm sorry, I should've thought to check my python version. I was on 3.6.3 which
it would not be deleted, updated to 3.6.8 and it works as intended.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
versions: -Python 3.7
Ammar Askar added the comment:
Hmm, I can't recreate this locally:
>>> import tempfile
>>> import os
>>> t = tempfile.TemporaryDirectory()
>>> temp_dir = t.name
>>> os.path.exists(temp_dir)
True
>>> del t
>>> os.path.exists(temp_dir)
False
What version of Python are you using?
--
New submission from Ian :
The documentation found here
https://docs.python.org/3.7/library/tempfile.html#tempfile.TemporaryDirectory
states the following
"On completion of the context or destruction of the temporary directory object
the newly created temporary directory and all its contents