tests/get-with-headers.py
branchstable
changeset 43380 579672b347d2
parent 43076 2372284d9457
child 45830 c102b704edb5
--- a/tests/get-with-headers.py	Sat Nov 02 11:48:38 2019 -0700
+++ b/tests/get-with-headers.py	Sat Nov 02 12:09:35 2019 -0700
@@ -98,7 +98,7 @@
         if formatjson:
             # json.dumps() will print trailing newlines. Eliminate them
             # to make tests easier to write.
-            data = json.loads(data)
+            data = pycompat.json_loads(data)
             lines = json.dumps(data, sort_keys=True, indent=2).splitlines()
             for line in lines:
                 bodyfh.write(pycompat.sysbytes(line.rstrip()))