2021-04-23 12:57:26 +00:00
|
|
|
From f01bc40df1bbd07c0fd619a110d11b00cc777350 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Ben Greiner <code@bnavigator.de>
|
|
|
|
|
Date: Fri, 23 Apr 2021 13:26:09 +0200
|
|
|
|
|
Subject: [PATCH] remove encoding kw from json.loads
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
tests/functionaltests/test_suites_functional.py | 6 +++---
|
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/tests/functionaltests/test_suites_functional.py b/tests/functionaltests/test_suites_functional.py
|
2022-12-06 12:31:05 +00:00
|
|
|
index d1077d9f0..18643d2bc 100644
|
2021-04-23 12:57:26 +00:00
|
|
|
--- a/tests/functionaltests/test_suites_functional.py
|
|
|
|
|
+++ b/tests/functionaltests/test_suites_functional.py
|
|
|
|
|
@@ -216,7 +216,7 @@ def _test_xml_result(result, expected, encoding="utf-8"):
|
|
|
|
|
return matches
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-def _test_json_result(result, expected, encoding="utf-8"):
|
|
|
|
|
+def _test_json_result(result, expected):
|
|
|
|
|
"""Compare the JSON test results with an expected value.
|
|
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
|
@@ -233,8 +233,8 @@ def _test_json_result(result, expected, encoding="utf-8"):
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
- result_dict = json.loads(result, encoding=encoding)
|
|
|
|
|
- expected_dict = json.loads(expected, encoding=encoding)
|
|
|
|
|
+ result_dict = json.loads(result)
|
|
|
|
|
+ expected_dict = json.loads(expected)
|
|
|
|
|
return result_dict == expected_dict
|
|
|
|
|
|
|
|
|
|
|