From 7551599a8a085d27b48a233032fe58fcd738cb80 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 12 Oct 2024 10:05:54 +0100 Subject: Make nogil test more readable by spliting logic across more lines --- tests/test_integration.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/test_integration.py') diff --git a/tests/test_integration.py b/tests/test_integration.py index b4476cd..ed44d86 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -95,10 +95,11 @@ class IntegrationTests(unittest.TestCase): ] for version, expected in cases: with self.subTest(version=version, expected=expected): - response, status = snekbox_request( - get_gil_status - | {"executable_path": f"/snekbin/python/{version}/bin/python"} - ) + payload = { + "executable_path": f"/snekbin/python/{version}/bin/python", + **get_gil_status, + } + response, status = snekbox_request(payload) self.assertEqual(status, 200) self.assertEqual(json.loads(response)["stdout"], expected) -- cgit v1.2.3