Skip to content

Don't swallow ImportError in temporary_directory()#3037

Merged
finswimmer merged 1 commit into
python-poetry:1.1from
abn:backports/contextmanager-fix
Oct 2, 2020
Merged

Don't swallow ImportError in temporary_directory()#3037
finswimmer merged 1 commit into
python-poetry:1.1from
abn:backports/contextmanager-fix

Conversation

@abn
Copy link
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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.

3 participants