8000 gh-92839: fixed typo in _bisectmodule.c (line 131) · Pull Request #92849 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92839: fixed typo in _bisectmodule.c (line 131) #92849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from May 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added OP's test case
  • Loading branch information
OTheDev committed May 16, 2022
commit 70474fbdd29734955b097cddec4a42b34c62b7c4
6 changes: 6 additions & 0 deletions Lib/test/test_bisect.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,12 @@ def test_insort(self):
sorted(target, key=keyfunc),
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
Expand Down
0