File tree 1 file changed +14
-7
lines changed
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):
82
82
'method' : 'method' ,
83
83
'params' : {}
84
84
})
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
+ )
92
99
93
100
94
101
class JsonDatetime (datetime .datetime ):
You can’t perform that action at this time.
0 commit comments