From 00e4fdbb480ad85f0ffa67f8db6ffbaf122972e9 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 23 Aug 2024 06:40:17 -0700 Subject: [PATCH] fix: address flake8 errors in test_cmd_read_only_with_tilde_path --- tests/basic/test_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index c4837b8bd..c7fbc0cba 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -887,7 +887,7 @@ class TestCommands(TestCase): self.assertEqual(len(coder.abs_read_only_fnames), 0) def test_cmd_read_only_with_tilde_path(self): - with GitTemporaryDirectory() as repo_dir: + with GitTemporaryDirectory(): io = InputOutput(pretty=False, yes=False) coder = Coder.create(self.GPT35, None, io) commands = Commands(io, coder) @@ -899,7 +899,7 @@ class TestCommands(TestCase): try: # Test the /read-only command with a path containing a tilde - commands.cmd_read_only(f"~/test_read_only_file.txt") + commands.cmd_read_only("~/test_read_only_file.txt") # Check if the file was added to abs_read_only_fnames self.assertTrue(