Streamline a cmath test (and fix some overlong lines into the bargain).
diff --git a/Lib/test/test_cmath.py b/Lib/test/test_cmath.py
index 15f635f..0d12635 100644
--- a/Lib/test/test_cmath.py
+++ b/Lib/test/test_cmath.py
@@ -511,10 +511,8 @@
@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():