File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,20 @@ def test_writer(wfile, writer):
8282 'method' : 'method' ,
8383 'params' : {}
8484 })
85-
86- assert wfile .getvalue () == (
87- b'Content-Length: 44\r \n '
88- b'Content-Type: application/vscode-jsonrpc; charset=utf8\r \n '
89- b'\r \n '
90- b'{"id":"hello","method":"method","params":{}}'
91- )
85+ if 'ujson' in sys .modules :
86+ assert wfile .getvalue () == (
87+ b'Content-Length: 44\r \n '
88+ b'Content-Type: application/vscode-jsonrpc; charset=utf8\r \n '
89+ b'\r \n '
90+ b'{"id":"hello","method":"method","params":{}}'
91+ )
92+ else :
93+ assert wfile .getvalue () == (
94+ b'Content-Length: 49\r \n '
95+ b'Content-Type: application/vscode-jsonrpc; charset=utf8\r \n '
96+ b'\r \n '
97+ b'{"id": "hello", "method": "method", "params": {}}'
98+ )
9299
93100
94101class JsonDatetime (datetime .datetime ):
You can’t perform that action at this time.
0 commit comments