10000 Clean up the traceback from the `run` mode by msullivan · Pull Request #5066 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Clean up the traceback from the run mode #5066

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 1 commit into from
May 17, 2018
Merged

Clean up the traceback from the run mode #5066

merged 1 commit into from
May 17, 2018

Conversation

msullivan
Copy link
Collaborator

Don't start the server from inside a catch block, since that produces
and ugly traceback if the server crashes.

Don't start the server from inside a catch block, since that produces
and ugly traceback if the server crashes.
Copy link
Member
@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Looks good!

Btw can we have tests for such situations? I presume it is not easy to write, if this is the case then go ahead and merge, otherwise maybe add a new kind of test for tracebacks from daemon crashes?

@gvanrossum
Copy link
Member

I believe we don't have any tests for dmypy behavior. :-( We'd have to design a new test harness probably.

@msullivan
Copy link
Collaborator Author

Yeah, we would (and probably do) need a new harness. I expanded the fine grained testing to cover most of the tricky daemon logic, but there is still plenty that isn't.

8886

@msullivan msullivan merged commit fae1f25 into master May 17, 2018
@msullivan msullivan deleted the traceback-fix branch May 17, 2018 01:46
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
0