8000 bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (G… · python/cpython@7c2d978 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0