Skip to content

Conversation

emmatyping
Copy link
Member

When working on partial stub packages I realized that the changes in #5060 were flaking. This change runs mypy in each temporary directory, which avoids parrallelism/cache issues (sometimes the multiple processes would try to read/write the same cache file). To test this thoroughly, I ran the test 25 times in a row, with no failures.

assert out == expected_out, err
assert err == expected_err, out
assert returncode == expected_returncode, returncode
if venv_dir is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this in a finally block.

@ilevkivskyi ilevkivskyi merged commit 4389341 into python:master Jun 17, 2018
@emmatyping emmatyping deleted the seppep561tests branch January 31, 2019 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants