-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-125522: Fix bare except in test_math.testTan #125544
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
Conversation
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@serhiy-storchaka, what do you think on keeping only self.assertRaises? |
I think that this test implies that NaN is a valid returning value. If we want to change this, open a separate issue. It should be discussed with Mark and Tim. |
Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
(cherry picked from commit 4b421e8) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
(cherry picked from commit 4b421e8) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
GH-125726 is a backport of this pull request to the 3.13 branch. |
GH-125727 is a backport of this pull request to the 3.12 branch. |
This is a simple rewrite of the test to avoid bare except and make the test's intention clearer