Skip to content

Add exist_ok=True in write_junit_xml #16637

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

Merged
merged 2 commits into from
Dec 8, 2023
Merged

Conversation

lukin0110
Copy link
Contributor

Fixes #16630

This comment has been minimized.

mypy/util.py Outdated
@@ -317,7 +317,7 @@ def write_junit_xml(
# checks for a directory structure in path and creates folders if needed
xml_dirs = os.path.dirname(os.path.abspath(path))
if not os.path.isdir(xml_dirs):
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove this condition as it's now redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, did remove it.

@JelleZijlstra JelleZijlstra self-assigned this Dec 8, 2023
Copy link
Contributor

github-actions bot commented Dec 8, 2023

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra JelleZijlstra merged commit 13e7213 into python:master Dec 8, 2023
kourbou pushed a commit to kourbou/mypy that referenced this pull request Dec 11, 2023
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.

Generate report (mypy.xml) fails when running mypy in parallel with another job
2 participants