SIGN IN SIGN UP

[3.13] gh-109218: Refactor tests for the complex() constructor (GH-119635) (GH-119795)

* Share common classes.
* Use exactly representable floats and exact tests.
* Check the sign of zero components.
* Remove duplicated tests (mostly left after merging int and long).
* Reorder tests in more consistent way.
* Test more error messages.
* Add tests for missed cases.
(cherry picked from commit bf098d4157158e1e4b2ea78aba4ac82d72e24cff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
013752c9f8f3b675cf34be1e940b14460d9d2423
Parent: 406f924
Committed by GitHub <noreply@github.com> on 8/9/2024, 2:42:16 PM