]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39002: Fix simple typo: tranlation -> translation (GH-17517)
authorTim Gates <tim.gates@iress.com>
Mon, 9 Dec 2019 17:42:17 +0000 (04:42 +1100)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 9 Dec 2019 17:42:17 +0000 (09:42 -0800)
Lib/test/test_statistics.py
Misc/ACKS
Misc/NEWS.d/next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst [new file with mode: 0644]

index bebd9b5d6f5026982edd6daa8d575df2f5588753..a9a427bc8d972ac09a0761be2d99dd1a861b6f53 100644 (file)
@@ -2192,7 +2192,7 @@ class TestQuantiles(unittest.TestCase):
                 quantiles(padded_data, n=n, method='inclusive'),
                 (n, data),
             )
-            # Invariant under tranlation and scaling
+            # Invariant under translation and scaling
             def f(x):
                 return 3.5 * x - 1234.675
             exp = list(map(f, expected))
@@ -2232,7 +2232,7 @@ class TestQuantiles(unittest.TestCase):
                 result = quantiles(map(datatype, data), n=n, method="inclusive")
                 self.assertTrue(all(type(x) == datatype) for x in result)
                 self.assertEqual(result, list(map(datatype, expected)))
-            # Invariant under tranlation and scaling
+            # Invariant under translation and scaling
             def f(x):
                 return 3.5 * x - 1234.675
             exp = list(map(f, expected))
index 2286f7b5017fa789ff4ac970c9eb94d6d6377984..253e2f6133d58773bfebd9860407183ad8a50068 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1900,3 +1900,4 @@ Robert Leenders
 Tim Hopper
 Dan Lidral-Porter
 Ngalim Siregar
+Tim Gates
diff --git a/Misc/NEWS.d/next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst b/Misc/NEWS.d/next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst
new file mode 100644 (file)
index 0000000..a6dfa22
--- /dev/null
@@ -0,0 +1 @@
+Fix simple typo in Lib/test/test_statistics.py.