mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Streamline a cmath test (and fix some overlong lines into the bargain).
This commit is contained in:
parent
fec6620dfb
commit
5ccafbadda
1 changed files with 2 additions and 4 deletions
|
@ -511,10 +511,8 @@ class CMathTests(unittest.TestCase):
|
|||
@unittest.skipIf(sysconfig.get_config_var('TANH_PRESERVES_ZERO_SIGN') == 0,
|
||||
"system tanh() function doesn't copy the sign")
|
||||
def testTanhSign(self):
|
||||
self.assertComplexIdentical(cmath.tanh(complex(0., .0j)), complex(0., .0j))
|
||||
self.assertComplexIdentical(cmath.tanh(complex(0., -.0j)), complex(0., -.0j))
|
||||
self.assertComplexIdentical(cmath.tanh(complex(-0., .0j)), complex(-0., .0j))
|
||||
self.assertComplexIdentical(cmath.tanh(complex(-0., -.0j)), complex(-0., -.0j))
|
||||
for z in complex_zeros:
|
||||
self.assertComplexIdentical(cmath.tanh(z), z)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue