diff options
author | 2024-10-12 10:05:54 +0100 | |
---|---|---|
committer | 2024-10-12 10:05:54 +0100 | |
commit | 7551599a8a085d27b48a233032fe58fcd738cb80 (patch) | |
tree | 6c232d8a57f92e4a4518adb057c6f29776b6970f | |
parent | Use the py_verison variable rather than reusing argv again (diff) |
Make nogil test more readable by spliting logic across more lines
-rw-r--r-- | tests/test_integration.py | 9 |
1 files changed, 5 insertions, 4 deletions
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) |