- update to 2.6.1: * configuration documentation OBS-URL: https://build.opensuse.org/request/show/1040442 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pycsw?expand=0&rev=17
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
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 d1077d9f0..18643d2bc 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
|
|
|
|
|