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

Save every Python Built-in Exception from Standard Library #46

Open
thinkocapo opened this issue May 28, 2020 · 1 comment
Open

Save every Python Built-in Exception from Standard Library #46

thinkocapo opened this issue May 28, 2020 · 1 comment

Comments

@thinkocapo
Copy link
Owner

thinkocapo commented May 28, 2020

We could really diversify the types of errors we're capturing for our Test Data Purposes.

Here's a solid list https://docs.python.org/3/library/exceptions.html#exception-hierarchy there's god to be some piece of standard library code (package) you can call a certain way to trigger every one of those error types?

Trigger and save the the database. Could make a python-exceptions-sqlite.db file to keep the db separate from your other db's that are full of errors.

By covering everyone and displaying the counts in Discover, it shows that Sentry really covers your bases.
image

@thinkocapo thinkocapo changed the title Save every Python Built-inException from Standard Library Save every Python Built-in Exception from Standard Library May 28, 2020
@thinkocapo
Copy link
Owner Author

could make an interesting academic exercise or interview problem:

"Write a script that throws every one of these errors. You have 1 hour, do as many as you can. Here's a Test, run the test and it will check that all those exception types are thrown"

Tests that you really understand what's going on behind those errors, in python / computer science? How fast or slow would you be able to get that done?

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

No branches or pull requests

1 participant