From a8635bade20e0e44a1878aab9077f9cb7b44c942 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 24 Feb 2025 10:11:45 -0800 Subject: [PATCH] fix: Improve test_pipe_editor_with_fake_editor reliability by using explicit log file path --- tests/basic/test_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic/test_editor.py b/tests/basic/test_editor.py index 0423ff905..2c45eba6e 100644 --- a/tests/basic/test_editor.py +++ b/tests/basic/test_editor.py @@ -108,7 +108,7 @@ with open(sys.argv[0] + ".log", "w") as f: pipe_editor("test content", suffix="md", editor=editor_cmd) # Read the log file to see what arguments were passed - with open(f"{script_path}.log") as f: + with open(log_path) as f: called_args = f.read().strip() # Verify the editor was called with a .md file