cpython/Lib/test/test_json
Victor Stinner b7e1d51e6b
gh-148241: Fix json serialization for str subclasses (#148249)
Fix json serialization: no longer call str(obj) on str subclasses.

Replace PyUnicodeWriter_WriteStr() with PyUnicodeWriter_WriteASCII()
and private _PyUnicodeWriter_WriteStr().
2026-04-09 13:50:44 +02:00
..
__init__.py gh-76007: Deprecate __version__ attribute (#138675) 2025-09-29 12:03:23 +03:00
__main__.py
test_decode.py gh-146440: Add array_hook parameter to JSON decoders (#146441) 2026-03-27 11:10:48 +00:00
test_default.py gh-122163: Add notes for JSON serialization errors (GH-122165) 2024-07-23 20:02:54 +03:00
test_dump.py gh-148241: Fix json serialization for str subclasses (#148249) 2026-04-09 13:50:44 +02:00
test_encode_basestring_ascii.py gh-148241: Fix json serialization for str subclasses (#148249) 2026-04-09 13:50:44 +02:00
test_enum.py gh-148241: Fix json serialization for str subclasses (#148249) 2026-04-09 13:50:44 +02:00
test_fail.py gh-71339: Use new assertion methods in tests (GH-129046) 2025-05-22 13:17:22 +03:00
test_float.py gh-99925: Fix inconsistency in json.dumps() error messages (GH-99926) 2022-12-20 12:54:56 +02:00
test_indent.py
test_pass1.py gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) 2022-09-24 14:38:53 +03:00
test_pass2.py gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) 2022-09-24 14:38:53 +03:00
test_pass3.py gh-96959: Update HTTP links which are redirected to HTTPS (GH-96961) 2022-09-24 14:38:53 +03:00
test_recursion.py gh-143460: Skip infinite recusion tests for infinite stack size (#143606) 2026-01-09 16:11:37 +00:00
test_scanstring.py gh-137821: Improve Argument Clinic definitions in the `_json` module (#140780) 2025-10-30 10:32:08 +00:00
test_separators.py
test_speedups.py gh-143196: Fix crash in non-standard use of internal JSON encoder object (GH-143618) 2026-01-12 18:23:05 +00:00
test_tool.py gh-140172: Skip JSON tools test during PGO training (GH-140809) 2025-12-11 00:34:49 +00:00
test_unicode.py gh-140793: Improve documentatation and tests for the ensure_ascii option in the json module (GH-140906) 2025-11-08 12:07:27 +02:00