diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-18 21:41:19 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-10-18 21:41:19 (GMT) |
commit | 652a1cb0e11eb7cf0040acaf121492d2a99768d9 (patch) | |
tree | a402ee12619f23a23e76ddeb3977a1683b0b13c9 /Lib/test/test_statistics.py | |
parent | 5fb81420d5ad64a900940e908b546cf40f2d6807 (diff) | |
download | cpython-652a1cb0e11eb7cf0040acaf121492d2a99768d9.zip cpython-652a1cb0e11eb7cf0040acaf121492d2a99768d9.tar.gz cpython-652a1cb0e11eb7cf0040acaf121492d2a99768d9.tar.bz2 |
bpo-38521: Fix error in NormalDist.__eq__() (GH-16840) (GH-16842)
(cherry picked from commit 5eabec022b9a10734fcf58faad02c4d233592f64)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_statistics.py')
-rw-r--r-- | Lib/test/test_statistics.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index af26473..bebd9b5 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -2651,9 +2651,13 @@ class TestNormalDist: nd2 = NormalDist(2, 4) nd3 = NormalDist() nd4 = NormalDist(2, 4) + nd5 = NormalDist(2, 8) + nd6 = NormalDist(8, 4) self.assertNotEqual(nd1, nd2) self.assertEqual(nd1, nd3) self.assertEqual(nd2, nd4) + self.assertNotEqual(nd2, nd5) + self.assertNotEqual(nd2, nd6) # Test NotImplemented when types are different class A: |