15 Commits
Author SHA1 Message Date
youknowdotandCodex 0342b808e4 Sync remaining canonical Python 3.15 test maintenance (#9425)
* Sync canonical Python 3.15 test maintenance

Apply update_lib cleanup and accounting, warning, and documentation updates while preserving stack-safety, Cargo path, and missing-native adaptations. Remove only unused helper and import remnants; do not add new tests or runtime claims.

Assisted-by: OpenAI Codex: model version unavailable

* Sync canonical SystemTap companion fixtures

Copy the existing expected trace and GC probe template through update_lib to match the already canonical consumer and Python input. Preserve the tracing capability gate; validate source consistency without invoking tracing tools or claiming provider support.

Assisted-by: OpenAI Codex: model version unavailable

---------

Co-authored-by: Codex <codex@openai.com>
2026-10-28 13:07:45 +00:00
youknowdotandyouknowdot c70e9b8443 Sync selected Python 3.15 core library tests and repr type errors (#9321)
* Sync Python 3.15 core library tests and repr type errors

Synchronize ten selected library paths from CPython 3.15.0 at
d220409a13b77de7a6c30abe16ea90db01528edc using the canonical updater,
retaining existing RustPython adapters and failure markers.

Match generic __repr__ invalid-result errors to the qualified type-name
format required by the canonical ExceptionGroup regression, preserving
string results and exceptions raised by the implementation.

Implementation, source review, and validation were AI-assisted. The model
version identifier is unavailable; automated checks are not human
verification. Bounded validation covers 43 passes and one canonical skip,
not the full repository suites.

Assisted-by: OpenAI Codex:model version unavailable

* Preserve original escape decoder consumed length after callbacks

Keep the original input length as consumed after successful unicode-escape
and raw-unicode-escape decoding, including error-handler input replacement.
Only report the current cursor when a non-final decode stops on incomplete
input, matching CPython's codec wrappers and incomplete exits.

Fix the canonical Unicode escape mutation regression that failed CI on
Linux, macOS and Windows. Preserve all Lib tests and existing assertions.
Bounded Linux validation: 55 passes and one canonical skip, CLI build and
strict common/VM Clippy passed. Full repository suites were not run.

Implementation, source review, and validation were AI-assisted. The model
version identifier is unavailable; automated checks are not human
verification.

Assisted-by: OpenAI Codex:model version unavailable

---------

Co-authored-by: youknowdot <336763669+youknowdot@users.noreply.github.com>
2026-10-23 18:01:14 +09:00
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