From 1e8fc97ba4ca9476036043358505e8ca1e6937a9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 19 Nov 2024 14:48:11 -0800 Subject: [PATCH] style: Apply linter formatting to test_models.py --- tests/basic/test_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/basic/test_models.py b/tests/basic/test_models.py index 2d9d9c762..04c9b183a 100644 --- a/tests/basic/test_models.py +++ b/tests/basic/test_models.py @@ -111,7 +111,7 @@ class TestModels(unittest.TestCase): # Write to a regular file instead of NamedTemporaryFile for better cross-platform compatibility tmp = tempfile.mktemp(suffix=".yml") try: - with open(tmp, 'w') as f: + with open(tmp, "w") as f: yaml.dump(test_settings, f) # Register the test settings @@ -136,6 +136,7 @@ class TestModels(unittest.TestCase): finally: # Clean up the temporary file import os + try: os.unlink(tmp) except OSError: