Skip to content

Commit

Permalink
Update Lib/test/test_capi/test_complex.py
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
skirpichev and vstinner authored Jun 8, 2024
1 parent d09fb10 commit 0990b5d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Lib/test/test_capi/test_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,11 @@ def test_py_c_pow(self):

self.assertEqual(_py_c_pow(0j, -1)[1], errno.EDOM)
self.assertEqual(_py_c_pow(0j, 1j)[1], errno.EDOM)
self.assertEqual(_py_c_pow(*[DBL_MAX+1j]*2),
(complex(*[INF]*2), errno.ERANGE))
self.assertEqual(_py_c_pow(DBL_MAX+1j, 2),
(complex(*[INF]*2), errno.ERANGE))
max_num = DBL_MAX+1j
self.assertEqual(_py_c_pow(max_num, max_num),
(complex(INF, INF), errno.ERANGE))
self.assertEqual(_py_c_pow(max_num, 2),
(complex(INF, INF), errno.ERANGE))


def test_py_c_abs(self):
Expand Down

0 comments on commit 0990b5d

Please sign in to comment.