Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Remi Rampin <[email protected]>
- Loading branch information