File pycsw-pr671-rm-json-encoding.patch of Package python-pycsw

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
index d1077d9f..18643d2b 100644
--- 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
openSUSE Build Service is sponsored by