Skip to content

Test object_hook and pickleability of some JSON components#154155

Open
dslavicek wants to merge 2 commits into
python:mainfrom
dslavicek:improve-json-test-coverage2
Open

Test object_hook and pickleability of some JSON components#154155
dslavicek wants to merge 2 commits into
python:mainfrom
dslavicek:improve-json-test-coverage2

Conversation

@dslavicek

Copy link
Copy Markdown
Contributor
  • add test for object hook in JSONDecoder
  • add test of pickleability of JsonDecodeError

@@ -0,0 +1,14 @@
import json

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why a new file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@encukou advised me not to put this in the file with decoder tests. I saw no existing dedicated file for testing pickling of things from the json module. Where do you propose placing the test?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah I see. I guess, it's fine then (I wasn't aware of the rationale so it was surprsing).

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in Sprint Jul 19, 2026
@bedevere-app

This comment was marked as off-topic.

@picnixz
picnixz dismissed their stale review July 19, 2026 15:03

,misclick

@picnixz picnixz changed the title add tests for json module Test object_hook and pickleability of json decoders Jul 19, 2026
@picnixz picnixz changed the title Test object_hook and pickleability of json decoders Test object_hook and pickleability of some JSON components Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants