gh-101410: Revert loghelper() change in 75f59bb for integer input (GH-132625)

This commit is contained in:
Sergey B Kirpichev 2025-04-17 10:55:00 +03:00 committed by GitHub
parent 954b2cf031
commit 0c356c865a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -2536,7 +2536,7 @@ class MathTests(unittest.TestCase):
math.log(x)
x = -123
with self.assertRaisesRegex(ValueError,
f"expected a positive input, got {x}"):
"expected a positive input$"):
math.log(x)
with self.assertRaisesRegex(ValueError,
f"expected a float or nonnegative integer, got {x}"):