Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't swallow ImportError in temporary_directory() #3037

Merged
merged 1 commit into from
Oct 2, 2020

Conversation

abn
Copy link
Member

@abn abn commented Oct 2, 2020

This is a backport of #3031 for 1.1

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

Fixes python-poetry#3026

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

    RuntimeError: generator didn't stop after throw()
@abn abn added the kind/bug Something isn't working as expected label Oct 2, 2020
@abn abn added this to the 1.1 milestone Oct 2, 2020
@abn abn requested a review from a team October 2, 2020 01:16
@finswimmer finswimmer merged commit a2d2937 into python-poetry:1.1 Oct 2, 2020
@abn abn deleted the backports/contextmanager-fix branch October 6, 2020 22:05
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants