Skip to content

Commit

Permalink
address review: fix typo + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Sep 23, 2024
1 parent e8f49b0 commit 0bdbc72
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 0bdbc72

Please sign in to comment.