Skip to content

Commit c2e821a

Browse files
rhettingergpshead
andauthored
Update Lib/test/test_statistics.py
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
1 parent f72e1c3 commit c2e821a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_statistics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,6 +2116,8 @@ def test_gh_140938(self):
21162116
# Inputs with math.inf should raise a ValueError
21172117
with self.assertRaises(ValueError):
21182118
self.func([1.0, math.inf])
2119+
with self.assertRaises(ValueError):
2120+
self.func([1.0, math.nan])
21192121

21202122

21212123
class TestSqrtHelpers(unittest.TestCase):

0 commit comments

Comments
 (0)