Commit 5ccafbad authored by Mark Dickinson's avatar Mark Dickinson

Streamline a cmath test (and fix some overlong lines into the bargain).

parent fec6620d
......@@ -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():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment