Skip to content
Commit 7a5f2601 authored by Remi Rampin's avatar Remi Rampin Committed by Arun Babu Neelicattu
Browse files

Don't swallow ImportError in temporary_directory()

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()
parent d6733428
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