From 8db75c515504f76090ebc1b9fb856020a4133dcc Mon Sep 17 00:00:00 2001 From: Sean O Brien Date: Thu, 26 Oct 2023 16:11:53 +0100 Subject: [PATCH] Downgrade to simplejson 3.17.2. (#123) * Downgrade to simplejson 3.17.2. * Fix test formatting. --- requirements/base.txt | 2 +- tests/test_lambda_runtime_marshaller.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 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