summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_json/test_tool.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45644: Make json.tool read infile before writing to outfile (GH-29273) ↵Miss Islington (bot)2021-11-061-0/+9
| | | | | | | | | | | | | | (GH-29445) so that $ python -m json.tool foo.json foo.json doesn't result in an empty foo.json. Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 815dad42d53fc40a6dc057e067f4a8a885c3b858) Co-authored-by: Chris Wesseling <chris.wesseling@protonmail.com>
* bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25189)Inada Naoki2021-04-061-1/+1
| | | | | | | | | | | | * Fix _sitebuiltins * Fix test_inspect * Fix test_interpreters * Fix test_io * Fix test_iter * Fix test_json * Fix test_linecache * Fix test_lltrace * Fix test_logging * Fix logging
* bpo-40275: Use new test.support helper submodules in tests (GH-21314)Hai Shi2020-07-061-4/+5
|
* bpo-39828: Fix json.tool to catch BrokenPipeError (GH-18779)Dong-hee Na2020-03-101-0/+13
|
* bpo-29636: json.tool: Add document for indentation options. (GH-17482)Daniel Himmelstein2019-12-071-33/+27
| | | And updated test to use subprocess.run
* bpo-27413: json.tool: Add --no-ensure-ascii option. (GH-17472)wim glenn2019-12-061-0/+22
|
* bpo-33684: json.tool: Use utf-8 for infile and outfile. (GH-17460)Inada Naoki2019-12-041-3/+18
|
* bpo-29636: Add --(no-)indent arguments to json.tool (GH-345)Daniel Himmelstein2019-12-041-0/+41
|
* bpo-31553: add --json-lines option to json.tool (#10051)HongWeipeng2018-11-071-0/+29
| | | | | | | | | | * add jsonlines option to json.tool * code review * fix:avoid read infile after it close * improve doc in whatsnew 3.8
* Fix stderr bug in json.tool test (#346)Daniel Himmelstein2017-03-151-5/+4
| | | See https://github.com/python/cpython/pull/201#discussion_r103229425.
* Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | Patch by Christie Wilson.
* Issue #21650: Add an `--sort-keys` option to json.tool CLI.Berker Peksag2014-11-101-1/+32
|
* improve the command-line interface of json.tool (closes #21000)Benjamin Peterson2014-03-221-0/+8
| | | | A patch from Berker Peksag.
* #18273: move the tests in Lib/test/json_tests to Lib/test/test_json and make ↵Ezio Melotti2013-08-081-0/+69
them discoverable by unittest. Patch by Zachary Ware.