diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-11-13 10:43:40 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-11-13 10:43:40 (GMT) |
commit | 5ccafbadda7a56d71389c63aa229623e703f655a (patch) | |
tree | 3cc4fe927151f7ecd3720b45c67e44b57ca78906 /Lib | |
parent | fec6620dfb9b7e99b68c07b623235f87f5fd1a60 (diff) | |
download | cpython-5ccafbadda7a56d71389c63aa229623e703f655a.zip cpython-5ccafbadda7a56d71389c63aa229623e703f655a.tar.gz cpython-5ccafbadda7a56d71389c63aa229623e703f655a.tar.bz2 |
Streamline a cmath test (and fix some overlong lines into the bargain).
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_cmath.py | 6 |
1 files changed, 2 insertions, 4 deletions
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 @@ 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(): |