From 940ada5033441a9ffab68ef4a67916baf9d0221e Mon Sep 17 00:00:00 2001 From: Sean O Brien Date: Thu, 26 Oct 2023 14:56:13 +0000 Subject: [PATCH 1/2] Downgrade to simplejson 3.17.2. --- requirements/base.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/base.txt b/requirements/base.txt index 515470b..614d435 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -1 +1 @@ -simplejson==3.17.6 +simplejson==3.17.2 From f0c736c7966e1ecdcbca923c689011a801a7ac0e Mon Sep 17 00:00:00 2001 From: Sean O Brien Date: Thu, 26 Oct 2023 14:59:56 +0000 Subject: [PATCH 2/2] Fix test formatting. --- tests/test_lambda_runtime_marshaller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_lambda_runtime_marshaller.py b/tests/test_lambda_runtime_marshaller.py index eeb2715..eb8b848 100644 --- a/tests/test_lambda_runtime_marshaller.py +++ b/tests/test_lambda_runtime_marshaller.py @@ -42,4 +42,6 @@ def test_to_json_unicode_encoding(self): response = to_json({"price": "£1.00"}) self.assertEqual('{"price": "£1.00"}', response) self.assertNotEqual('{"price": "\\u00a31.00"}', response) - self.assertEqual(19, len(response.encode('utf-8'))) # would be 23 bytes if a unicode escape was returned + self.assertEqual( + 19, len(response.encode("utf-8")) + ) # would be 23 bytes if a unicode escape was returned