8000 gh-133895: provide C99 Annex G return values for cmath's functions by skirpichev · Pull Request #134995 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-133895: provide C99 Annex G return values for cmath's functions #134995

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
Prev Previous commit
Next Next commit
enable testing of values for OverflowError's
  • Loading branch information
skirpichev committed Jun 5, 2025
commit 4ebe14fbb4a068af184e6ce907a3376ddcad3abd
4 changes: 2 additions & 2 deletions Lib/test/test_cmath.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def polar_complex(z):
elif 'overflow' in flags:
try:
actual = function(arg)
except OverflowError:
continue
except OverflowError as exc:
actual = exc.value if fn != 'polar' else complex(*exc.value)
else:
self.fail('OverflowError not raised in test '
'{}: {}(complex({!r}, {!r}))'.format(id, fn, ar, ai))
Expand Down
0