summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_statistics.py
diff options
context:
space:
mode:
authorZack Kneupper <zachary.kneupper@gmail.com>2021-05-25 00:30:58 (GMT)
committerGitHub <noreply@github.com>2021-05-25 00:30:58 (GMT)
commit2f3a87856c7033227577b9ed0c77ed75311430b7 (patch)
treeb3c06f5f87a54c4e4464426c7ba6af8071e2d4f3 /Lib/test/test_statistics.py
parent8450e8a81f6d54f45e1fc5c13a03878c9978750d (diff)
downloadcpython-2f3a87856c7033227577b9ed0c77ed75311430b7.zip
cpython-2f3a87856c7033227577b9ed0c77ed75311430b7.tar.gz
cpython-2f3a87856c7033227577b9ed0c77ed75311430b7.tar.bz2
bpo-44151: linear_regression() minor API improvements (GH-26199)
Diffstat (limited to 'Lib/test/test_statistics.py')
-rw-r--r--Lib/test/test_statistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py
index 3e6e17a..a7cb027 100644
--- a/Lib/test/test_statistics.py
+++ b/Lib/test/test_statistics.py
@@ -2501,7 +2501,7 @@ class TestLinearRegression(unittest.TestCase):
([1, 2, 3], [21, 22, 23], 20, 1),
([1, 2, 3], [5.1, 5.2, 5.3], 5, 0.1),
]:
- intercept, slope = statistics.linear_regression(x, y)
+ slope, intercept = statistics.linear_regression(x, y)
self.assertAlmostEqual(intercept, true_intercept)
self.assertAlmostEqual(slope, true_slope)