Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address review: fix typo + cleanup
  • Loading branch information
skirpichev committed Sep 23, 2024
commit 0bdbc72260137044820678832d8ef1193db06543
4 changes: 2 additions & 2 deletions Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -2522,14 +2522,14 @@ def test_exception_messages(self):
math.log2(x)
with self.assertRaises(ValueError,
msg=f"expected a positive input, got {x}"):
math.log2(x)
math.log10(x)
x = decimal.Decimal('-1.1')
with self.assertRaises(ValueError,
msg=f"expected a positive input, got {x!r}"):
math.log(x)
x = fractions.Fraction(1, 10**400)
with self.assertRaises(ValueError,
msg=f"expected a positive input, got {float(x)!r}"):
msg=f"expected a positive input, got {float(x)}"):
math.log(x)
x = -123
with self.assertRaises(ValueError,
Expand Down