From 6c8b9a852f8a787122c0e2492126ee8aa52acff0 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Fri, 23 Apr 2021 08:50:17 -0700 Subject: [PATCH] test_jsonyamlxml_parser: remove deprecated json.load encoding argument It was deprecated in Python 3.1 and removed in Python 3.9. --- tests/test_jsonyamlxml_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_jsonyamlxml_parser.py b/tests/test_jsonyamlxml_parser.py index f65e01e64..dfac6d195 100644 --- a/tests/test_jsonyamlxml_parser.py +++ b/tests/test_jsonyamlxml_parser.py @@ -38,7 +38,7 @@ def check_document(self, document, expected_loc, regen=False): o.write(json.dumps(result, indent=2)) with io.open(expected_loc, encoding='utf-8') as ex: - expected = json.load(ex, encoding='utf-8', object_pairs_hook=OrderedDict) + expected = json.load(ex, object_pairs_hook=OrderedDict) self.assertEqual(expected, result)