mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
gh-114050: Fix crash when more than two arguments are passed to int() (GH-114067)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
This commit is contained in:
parent
311d1e2701
commit
a571a2fd3f
3 changed files with 4 additions and 1 deletions
|
@ -90,6 +90,7 @@ class IntTestCases(unittest.TestCase):
|
|||
|
||||
|
||||
self.assertRaises(TypeError, int, 1, 12)
|
||||
self.assertRaises(TypeError, int, "10", 2, 1)
|
||||
|
||||
self.assertEqual(int('0o123', 0), 83)
|
||||
self.assertEqual(int('0x123', 16), 291)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue