Commit Graph
13 Commits
Author SHA1 Message Date
Jeong, YunWonandJames David Clarke 1dcdec4dd5 Port the remaining runtime fixes from #7993 (#8995)
* Take re pos/endpos as signed integers

Negative values clamp to 0, and values beyond Py_ssize_t raise
OverflowError.

Assisted-by: Claude Code:claude-opus-5-5

* Port the remaining runtime fixes from #7993

- bytearray: keep the buffer exported while converting the needle of
  find/count/index/rfind/rindex/__contains__/split/rsplit and the hex
  separator, so resizing from there raises BufferError
- str(): report non-str encoding/errors as "str() argument 'X' must be
  str, not T", and check argument counts and name/position duplicates
  for keyword calls
- _json.scanstring: take end as a signed integer and raise ValueError
  when it is out of bounds
- lzma: reject filter specs with keys the filter does not take
- mmap: raise ValueError when growing a shared anonymous mapping on
  Linux/NetBSD
- _sqlite3: check that the backup progress argument is callable
- Remove the expectedFailure markers of the tests these fix

Assisted-by: Claude Code:claude-opus-5-5

* Reject arguments given by name and position in FuncArgs::bind_for

bind_for reports a keyword that fills a parameter already given by
position before other binding errors, using the parameter list of the
FromArgs type. getargs shares the message, str() drops its own check,
and blake2b/blake2s name themselves in binding errors.

Assisted-by: Claude Code:claude-opus-5-5

---------

Co-authored-by: James David Clarke <james@jamesdavidclarke.com>
2026-10-08 08:11:26 +09:00
ShaharNaveh dc42039876 Update test_json from 3.14.3 2026-02-10 21:00:40 +09:00
Lee Dogeon 5242ff5243 Bump json to 3.14.2 (#6774) 2026-01-18 19:16:48 +09:00
Lee Dogeon ef871d227e Update json module to 3.13.11 (#6743) 2026-01-16 21:38:15 +09:00
Shahar Naveh c497061290 Update json from 3.13.5 (#6007)
* Update `json` from 3.13.5

* Update `test_json` from 3.13.5
2025-07-20 18:44:46 +09:00
Noa 0a07cd931f Fix more surrogate crashes 2025-03-26 23:12:21 -05:00
Noa a86126419c Fix remaining tests 2025-03-25 19:05:12 -05:00
Padraic Fanning 63c3a306c4 Unskip tests in test_json.test_scanstring 2021-02-25 21:39:08 -05:00
Padraic Fanning a5bc2bb909 Explain test_overflow skip 2021-02-07 15:49:42 -05:00
Padraic Fanning 961472e6fe Explain test_bad_escapes skip 2021-02-07 15:49:42 -05:00
Padraic Fanning c283f64a96 Explain test_surrogates skip 2021-02-07 15:49:42 -05:00
Noah 95d12d02ae Mark failing tests for test_json 2020-04-08 12:26:28 -05:00
Noah 9d136d6450 Add test.test_json from CPython 3.8.2 2020-04-08 12:16:19 -05:00