This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Evelyn Mitchell
Recipients Evelyn Mitchell, ned.deily
Date 2016-08-14.20:02:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CABD0H0szR_v5y9VYW4S9g=iK3TDg3E=uu4D_WZFKhWLZTi_8Fw@mail.gmail.com>
In-reply-to <1471204083.98.0.528876212951.issue27763@psf.upfronthosting.co.za>
Content
test_cmath includes abs() of zeros, infinities, and real or imaginary part
NaN, but does not include a test for the magnitude conversion, which would
be triggered by something like
>>> abs(complex(2.1,3.5))
4.08166632639171
>>> abs(complex('2.1+3.5j'))
4.08166632639171

And in looking through test_cmath, it appears that only the two numeric
argument form of complex(i, j) is tested for any of the functions, not the
complex('i+nj') string form.

On Sun, Aug 14, 2016 at 1:48 PM, Ned Deily <report@bugs.python.org> wrote:

>
> Ned Deily added the comment:
>
> I think tests for abs() using complex numbers are already in test_cmath.
> How do they look?
>
> ----------
> nosy: +ned.deily
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue27763>
> _______________________________________
>
History
Date User Action Args
2016-08-14 20:02:07Evelyn Mitchellsetrecipients: + Evelyn Mitchell, ned.deily
2016-08-14 20:02:07Evelyn Mitchelllinkissue27763 messages
2016-08-14 20:02:07Evelyn Mitchellcreate