summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authoroda-gitso <105083118+oda-gitso@users.noreply.github.com>2022-05-28 18:08:06 (GMT)
committerGitHub <noreply@github.com>2022-05-28 18:08:06 (GMT)
commit7fa9b7daa5a8bb5760724ac2d94f5298c60dc905 (patch)
tree2634bf1f216796b6f236987df3e381f016109378 /Lib
parentdec1e9346d82fa4a4761389c81d36ef9d01f332b (diff)
downloadcpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.zip
cpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.tar.gz
cpython-7fa9b7daa5a8bb5760724ac2d94f5298c60dc905.tar.bz2
gh-92839: fixed typo in _bisectmodule.c (line 131) (#92849)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_bisect.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_bisect.py b/Lib/test/test_bisect.py
index 20f8b9d..ba10822 100644
--- a/Lib/test/test_bisect.py
+++ b/Lib/test/test_bisect.py
@@ -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