Skip to content

Wrap out-of-range sequence writes in JsonPointerException - #132

Open
boogu2005 wants to merge 1 commit into
stefankoegl:masterfrom
boogu2005:fix/typed-sequence-value-errors
Open

boogu2005 wants to merge 1 commit into
stefankoegl:masterfrom
boogu2005:fix/typed-sequence-value-errors

Conversation

@boogu2005

Copy link
Copy Markdown
Contributor

Assigning or appending an out-of-range value through set_pointer() raises ValueError for bytearray and OverflowError for array.array. Callers that catch JsonPointerException for invalid assignments miss both failures.

Route these range errors through the existing JsonPointerException handling for sequence assignments and appends.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 98.315% (-0.5%) from 98.864% — boogu2005:fix/typed-sequence-value-errors into stefankoegl:master

@stefankoegl

Copy link
Copy Markdown
Owner

@boogu2005 Thanks! Could you please have a look at the decreasing test coverage?

This branch has not been deployed

No deployments
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.

3 participants