mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122013)
(cherry picked from commit 1a0c7b9ba4
)
This commit is contained in:
parent
e7130dc014
commit
39dea212f4
95 changed files with 232 additions and 232 deletions
|
@ -618,7 +618,7 @@ class ComplexTest(unittest.TestCase):
|
|||
def test_hash(self):
|
||||
for x in range(-30, 30):
|
||||
self.assertEqual(hash(x), hash(complex(x, 0)))
|
||||
x /= 3.0 # now check against floating point
|
||||
x /= 3.0 # now check against floating-point
|
||||
self.assertEqual(hash(x), hash(complex(x, 0.)))
|
||||
|
||||
self.assertNotEqual(hash(2000005 - 1j), -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue