summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorOren Milman <orenmn@gmail.com>2018-03-26 15:04:39 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-03-26 15:04:39 (GMT)
commit7c2d97827fd2ccd72ab7a98427f87fcfe3891644 (patch)
tree565da329b404e22ba332676c610dc0981665c20b /Lib
parente105294708ffc78a31566b48468746eb4609abe7 (diff)
downloadcpython-7c2d97827fd2ccd72ab7a98427f87fcfe3891644.zip
cpython-7c2d97827fd2ccd72ab7a98427f87fcfe3891644.tar.gz
cpython-7c2d97827fd2ccd72ab7a98427f87fcfe3891644.tar.bz2
bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_json/test_speedups.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_json/test_speedups.py b/Lib/test/test_json/test_speedups.py
index 5dad692..fbfee1a 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",