[Python-checkins] bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)

Serhiy Storchaka webhook-mailer at python.org
Mon Mar 26 11:04:45 EDT 2018


https://github.com/python/cpython/commit/7c2d97827fd2ccd72ab7a98427f87fcfe3891644
commit: 7c2d97827fd2ccd72ab7a98427f87fcfe3891644
branch: master
author: Oren Milman <orenmn at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-03-26T18:04:39+03:00
summary:

bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)

files:
M Lib/test/test_json/test_speedups.py

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 @@ def test(value):
 
 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",



More information about the Python-checkins mailing list