mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)
This commit is contained in:
parent
e105294708
commit
7c2d97827f
1 changed files with 2 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue