]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109218: Refactor tests for the complex() constructor (GH-119635)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 30 May 2024 17:35:59 +0000 (20:35 +0300)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 17:35:59 +0000 (17:35 +0000)
commitbf098d4157158e1e4b2ea78aba4ac82d72e24cff
treee6fb5f2358dce243c7dc0a243ccef84fba7d09b2
parente875c2d752fed0a8d16958dc7b331e66a2476247
gh-109218: Refactor tests for the complex() constructor (GH-119635)

* 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.
Lib/test/test_complex.py