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 with self.assertRaises(Exception): #457

Open
jimmylai opened this issue Feb 9, 2021 · 1 comment
Open

Remove with self.assertRaises(Exception): #457

jimmylai opened this issue Feb 9, 2021 · 1 comment
Labels
good first issue Good for newcomers

Comments

@jimmylai
Copy link
Contributor

jimmylai commented Feb 9, 2021

with self.assertRaises(Exception): is used in a couple places for testing an exception is raised.
It can catch any Exception which can result in catching unexpected error.
Change to use a more specific exception or use self.assertRaisesRegex instead.

@zsol zsol added the good first issue Good for newcomers label May 19, 2021
@srisatya12
Copy link

@jimmylai will work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants