summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_int.py
diff options
context:
space:
mode:
authorkcatss <kcats9731@gmail.com>2024-01-18 11:27:44 (GMT)
committerGitHub <noreply@github.com>2024-01-18 11:27:44 (GMT)
commita571a2fd3fdaeafdfd71f3d80ed5a3b22b63d0f7 (patch)
treecc089d8bfeac34767201ffadd803814784efd919 /Lib/test/test_int.py
parent311d1e2701037952eaf75f993be76f3092c1f01c (diff)
downloadcpython-a571a2fd3fdaeafdfd71f3d80ed5a3b22b63d0f7.zip
cpython-a571a2fd3fdaeafdfd71f3d80ed5a3b22b63d0f7.tar.gz
cpython-a571a2fd3fdaeafdfd71f3d80ed5a3b22b63d0f7.tar.bz2
gh-114050: Fix crash when more than two arguments are passed to int() (GH-114067)
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Diffstat (limited to 'Lib/test/test_int.py')
-rw-r--r--Lib/test/test_int.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_int.py b/Lib/test/test_int.py
index 5545ee3..0bf55fa 100644
--- a/Lib/test/test_int.py
+++ b/Lib/test/test_int.py
@@ -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)