mirror of https://github.com/python/cpython
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)
This commit is contained in:
parent
e89e159b18
commit
c18b805ac6
|
@ -2192,7 +2192,7 @@ class TestQuantiles(unittest.TestCase):
|
||||||
quantiles(padded_data, n=n, method='inclusive'),
|
quantiles(padded_data, n=n, method='inclusive'),
|
||||||
(n, data),
|
(n, data),
|
||||||
)
|
)
|
||||||
# Invariant under tranlation and scaling
|
# Invariant under translation and scaling
|
||||||
def f(x):
|
def f(x):
|
||||||
return 3.5 * x - 1234.675
|
return 3.5 * x - 1234.675
|
||||||
exp = list(map(f, expected))
|
exp = list(map(f, expected))
|
||||||
|
@ -2232,7 +2232,7 @@ class TestQuantiles(unittest.TestCase):
|
||||||
result = quantiles(map(datatype, data), n=n, method="inclusive")
|
result = quantiles(map(datatype, data), n=n, method="inclusive")
|
||||||
self.assertTrue(all(type(x) == datatype) for x in result)
|
self.assertTrue(all(type(x) == datatype) for x in result)
|
||||||
self.assertEqual(result, list(map(datatype, expected)))
|
self.assertEqual(result, list(map(datatype, expected)))
|
||||||
# Invariant under tranlation and scaling
|
# Invariant under translation and scaling
|
||||||
def f(x):
|
def f(x):
|
||||||
return 3.5 * x - 1234.675
|
return 3.5 * x - 1234.675
|
||||||
exp = list(map(f, expected))
|
exp = list(map(f, expected))
|
||||||
|
|
|
@ -1900,3 +1900,4 @@ Robert Leenders
|
||||||
Tim Hopper
|
Tim Hopper
|
||||||
Dan Lidral-Porter
|
Dan Lidral-Porter
|
||||||
Ngalim Siregar
|
Ngalim Siregar
|
||||||
|
Tim Gates
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix simple typo in Lib/test/test_statistics.py.
|
Loading…
Reference in New Issue