Skip to content

Update json from v3.14.3#7144

Open
github-actions[bot] wants to merge 1 commit intomainfrom
main-b990b3e946ae11bf
Open

Update json from v3.14.3#7144
github-actions[bot] wants to merge 1 commit intomainfrom
main-b990b3e946ae11bf

Conversation

@github-actions
Copy link
Contributor

Summary

Upgrade json module from CPython v3.14.3.

Part of #6839

Changes

  • Updated Lib/json from CPython v3.14.3
  • Migrated test files preserving RustPython markers
  • Auto-marked 7 new test failures with @expectedFailure
  • Fixed update_lib scripts to handle classes with pass on same line
  • Fixed auto_mark to prevent empty classes after stripping markers

Script Fixes

This PR also includes two critical fixes to the update_lib scripts:

  1. patch_spec.py: Expand one-line classes before inserting methods

    • When applying patches to classes like class Foo: pass, the script now properly expands them to class Foo: before inserting methods
  2. cmd_auto_mark.py: Add pass to empty classes after stripping

    • When strip_reasonless_expected_failures removes super-call-only methods, it now checks if any classes become empty and adds pass statements to prevent syntax errors

AI generated by Upgrade Python Library

  • expires on Feb 15, 2026, 7:31 PM UTC

colno: The column corresponding to pos

"""
# RUSTPYTHON SPECIFIC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably need to keep this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant