Skip to content
Unverified Commit a2d2937d authored by Arun Babu Neelicattu's avatar Arun Babu Neelicattu Committed by GitHub
Browse files

Don't swallow ImportError in temporary_directory() (#3037)



Fixes #3026

If the context wrapped by the temporary_directory() context manager
raised ImportError (for example because distutils.util cannot be
imported, #721 #1837), it would previously keep going, causing a
RuntimeError from contextlib:

    RuntimeError: generator didn't stop after throw()

Co-authored-by: default avatarRemi Rampin <r@remirampin.com>
parent 8e3f3c28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment