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

Remove weird implementation of --show_traceback and --pdb. #2216

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

gvanrossum
Copy link
Member

Also set options.show_traceback in all test modules I could find.

These flags used to be implemented as globals in errors.py that had to
be set by calling set_show_tb() or set_drop_into_pdb() (and setting
the corresponding Options attributes had no effect). Now they're just
regular options. I had to adjust some plumbing to give
report_internal_error() access to the options but it was easier than I
thought.

Also set options.show_traceback in all test modules I could find.

These flags used to be implemented as globals in errors.py that had to
be set by calling set_show_tb() or set_drop_into_pdb() (and setting
the corresponding Options attributes had no effect).  Now they're just
regular options.  I had to adjust some plumbing to give
report_internal_error() access to the options but it was easier than I
thought.
@ddfisher
Copy link
Collaborator

ddfisher commented Oct 4, 2016

🎉

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.

2 participants