10000 Fix tests so they're compatible with both ujson and pure json library by ajohnston9 · Pull Request #26 · python-lsp/python-lsp-jsonrpc · GitHub
[go: up one dir, main page]

Skip to content

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

0