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.

classification
Title: There is no test for repr(complex(-0.,1.)) special handling
Type: Stage: resolved
Components: Tests Versions: Python 3.2
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: eric.smith Nosy List: eric.smith, mark.dickinson
Priority: normal Keywords: easy

Created on 2010-12-04 13:24 by eric.smith, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg123348 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-12-04 13:24
There's a special test in the C code for this, but there no test for it in test_complex. Note that this needs to be a IEEE 754 specific test.
msg123350 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-12-04 13:35
Technically the special handling in complex_repr() is for +0, but there needs to be a test both ways.
msg123360 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2010-12-04 15:26
Checked-in in r87044.
History
Date User Action Args
2022-04-11 14:57:09adminsetgithub: 54834
2010-12-04 15:26:41eric.smithsetstatus: open -> closed
resolution: accepted
messages: + msg123360

stage: resolved
2010-12-04 13:35:39eric.smithsetmessages: + msg123350
2010-12-04 13:33:25mark.dickinsonsetnosy: + mark.dickinson
2010-12-04 13:24:31eric.smithcreate