Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reading json schema in Python 3.5 #317

Merged
merged 3 commits into from
Aug 25, 2017

Conversation

drdavella
Copy link
Contributor

This fixes #314 (and fixes #242 which is a duplicate). The JSON module in Python 3.5 doesn't accept bytearray as input, but 3.6 does. This PR adds a test and a workaround.

@drdavella drdavella added the bug label Aug 25, 2017
@drdavella drdavella self-assigned this Aug 25, 2017
@drdavella drdavella changed the title Fix json schema Fix reading json schema in Python 3.5 Aug 25, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.592% when pulling c8af8c0 on drdavella:fix-json-schema into b88b1a1 on spacetelescope:master.

@drdavella drdavella merged commit a23105a into asdf-format:master Aug 25, 2017
@drdavella drdavella deleted the fix-json-schema branch August 25, 2017 16:46
@bernie-simon
Copy link
Contributor

The fix looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asdf fails to load json schema files Cannot load json files under Python 3
3 participants