From dad7af3e60d098ef02dc0868b8d769edd0e5f12d Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 9 Dec 2019 18:06:48 +1100 Subject: [PATCH 1/2] bpo-39002: Fix simple typo. (GH-17517) There is a small typo in Lib/test/test_statistics.py. Should read `translation` rather than `tranlation`. --- Lib/test/test_statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index bebd9b5d6f50269..a9a427bc8d972ac 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -2192,7 +2192,7 @@ def test_specific_cases(self): 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 @@ def test_specific_cases_inclusive(self): 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)) From 86dcd3908c21bc54e2701908a66808347b49e01f Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Mon, 9 Dec 2019 21:14:43 +1100 Subject: [PATCH 2/2] Add news and acknowledgements --- Misc/ACKS | 1 + .../next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst diff --git a/Misc/ACKS b/Misc/ACKS index 2286f7b5017fa78..253e2f6133d5877 100644 --- 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 index 000000000000000..a6dfa22eb7a169d --- /dev/null +++ b/Misc/NEWS.d/next/Documentation/2019-12-09-10-12-00.bpo-39002.AfgvfO.rst @@ -0,0 +1 @@ +Fix simple typo in Lib/test/test_statistics.py.