Skip to content

Commit

Permalink
pythongh-114050: Add test case and NEWS entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Eclips4 committed Jan 17, 2024
1 parent 4bd6dc6 commit c644351
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_int.py
Expand Up @@ -90,6 +90,7 @@ def test_basic(self):


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)
Expand Down
@@ -0,0 +1,2 @@
Fix segmentation fault caused by an incorrect format string
in ``TypeError`` exception when more than two arguments are passed to ``int``.

0 comments on commit c644351

Please sign in to comment.