mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
* replace usage of `IOError` as it is an alias to `OSError` * replace usage of `socket.error` as it is an alias to `OSError` * use subclasses of `OSError` rather than inspecting `errno`s * utilize `exist_ok` parameter of `os.makedirs` rather than ignoring `FileExistsError` Make the following changes to the exception handling this patch already updates to be consistent with the new code: * use `ex` as a name for exception being handled * use `from ex` when re-raising exception for additional context * use f-strings and `!r` for quoting * pass exceptions to the `exception` parameter of `fail_json` * use `display.error_as_warning` rather than passing stringified exception into `display.warning` Co-authored-by: Matt Clay <matt@mystile.com> |
6 months ago | |
|---|---|---|
| .. | ||
| README | ||
| fail0.json | ||
| fail1.json | ||
| fail2.json | ||
| fail3.json | ||
| fail4.json | ||
| fail5.json | ||
| fail6.json | ||
| fail7.json | ||
| fail8.json | ||
| fail9.json | ||
| fail10.json | ||
| fail11.json | ||
| fail12.json | ||
| fail13.json | ||
| fail14.json | ||
| fail15.json | ||
| fail16.json | ||
| fail17.json | ||
| fail18.json | ||
| fail19.json | ||
| fail20.json | ||
| fail21.json | ||
| fail22.json | ||
| fail23.json | ||
| fail24.json | ||
| fail25.json | ||
| fail26.json | ||
| fail27.json | ||
| fail28.json | ||
| fail29.json | ||
| fail30.json | ||
| formdata.txt | ||
| pass0.json | ||
| pass1.json | ||
| pass2.json | ||
| pass3.json | ||
| pass4.json | ||
| testserver.py | 6 months ago | |
README
The files were taken from http://www.json.org/JSON_checker/
> If the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files.
Difference with JSON_checker dataset:
- *${n}.json renamed to *${n-1}.json to be 0-based
- fail0.json renamed to pass3.json as python json module allows JSON payload to be string
- fail17.json renamed to pass4.json as python json module has no problems with deep structures
- fail32.json renamed to fail0.json to fill gap
- fail31.json renamed to fail17.json to fill gap