mirror of
https://github.com/python/cpython
synced 2024-10-04 19:08:12 +00:00
Streamline a cmath test (and fix some overlong lines into the bargain).
This commit is contained in:
parent
fec6620dfb
commit
5ccafbadda
|
@ -511,10 +511,8 @@ def test_isinf(self):
|
|||
@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…
Reference in a new issue