From: Oren Milman Date: Mon, 26 Mar 2018 15:04:39 +0000 (+0300) Subject: bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789) X-Git-Tag: v3.8.0a1~2033 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c2d97827fd2ccd72ab7a98427f87fcfe3891644;p=thirdparty%2FPython%2Fcpython.git bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789) --- diff --git a/Lib/test/test_json/test_speedups.py b/Lib/test/test_json/test_speedups.py index 5dad69208704..fbfee1a58209 100644 --- a/Lib/test/test_json/test_speedups.py +++ b/Lib/test/test_json/test_speedups.py @@ -31,6 +31,8 @@ class TestDecode(CTest): class TestEncode(CTest): def test_make_encoder(self): + # bpo-6986: The interpreter shouldn't crash in case c_make_encoder() + # receives invalid arguments. self.assertRaises(TypeError, self.json.encoder.c_make_encoder, (True, False), b"\xCD\x7D\x3D\x4E\x12\x4C\xF9\x79\xD7\x52\xBA\x82\xF2\x27\x4A\x7D\xA0\xCA\x75",