]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-109218: Refactor tests for the complex() constructor (GH-119635) (GH-119795)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Aug 2024 14:42:16 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 14:42:16 +0000 (17:42 +0300)
commit013752c9f8f3b675cf34be1e940b14460d9d2423
tree5c4047b4c6fcd2095a643383baefb6789a35ab27
parent406f924ddafa0d8aef08cf1af6048c81c048485d
[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>
Lib/test/test_complex.py