Skip to content

Commit 7c2d978

Browse files
orenmnserhiy-storchaka
authored andcommitted
bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)
1 parent e105294 commit 7c2d978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_json/test_speedups.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def test(value):
3131

3232
class TestEncode(CTest):
3333
def test_make_encoder(self):
34+
# bpo-6986: The interpreter shouldn't crash in case c_make_encoder()
35+
# receives invalid arguments.
3436
self.assertRaises(TypeError, self.json.encoder.c_make_encoder,
3537
(True, False),
3638
b"\xCD\x7D\x3D\x4E\x12\x4C\xF9\x79\xD7\x52\xBA\x82\xF2\x27\x4A\x7D\xA0\xCA\x75",

0 commit comments

Comments
 (0)