Skip to content

Fix tests so they're compatible with both ujson and pure json library #26

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

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

ajohnston9
Copy link
Contributor

The built-in json library adds spacing to json output that ujson does not add. Consequently, the test_writer method in test/test_streams.py fails when using json as written. This PR simply modifies the test so that the appropriate return value is used based on which json library has been imported.

@ccordoba12 ccordoba12 changed the title Fixed tests so they're compatible with both ujson and pure json library Fix tests so they're compatible with both ujson and pure json library Sep 23, 2023
@ccordoba12 ccordoba12 added this to the v1.1.2 milestone Sep 23, 2023
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @ajohnston9!

@ccordoba12 ccordoba12 merged commit 869bf81 into python-lsp:develop Sep 23, 2023
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.

2 participants