mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
gh-92839: fixed typo in _bisectmodule.c (line 131) (GH-92849)
(cherry picked from commit 7fa9b7daa5
)
Co-authored-by: oda-gitso <105083118+oda-gitso@users.noreply.github.com>
This commit is contained in:
parent
48647d00bf
commit
85cb7f08ed
3 changed files with 9 additions and 2 deletions
|
@ -257,6 +257,12 @@ class TestBisect:
|
|||
target
|
||||
)
|
||||
|
||||
def test_insort_keynotNone(self):
|
||||
x = []
|
||||
y = {"a": 2, "b": 1}
|
||||
for f in (self.module.insort_left, self.module.insort_right):
|
||||
self.assertRaises(TypeError, f, x, y, key = "b")
|
||||
|
||||
class TestBisectPython(TestBisect, unittest.TestCase):
|
||||
module = py_bisect
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue