diff options
Diffstat (limited to 'Lib/test/test_json')
-rw-r--r-- | Lib/test/test_json/test_speedups.py | 2 |
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", |