mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
fix: Use os.path.sep for portable path separator
This commit is contained in:
parent
96dca6cd5f
commit
f14de907f3
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
import os
|
||||
import subprocess
|
||||
import tempfile
|
||||
from io import StringIO
|
||||
|
@ -358,7 +359,7 @@ class TestMain(TestCase):
|
|||
MockLinter.assert_called_once()
|
||||
called_arg = MockLinter.call_args[0][0]
|
||||
self.assertTrue(called_arg.endswith("dirty_file.py"))
|
||||
self.assertFalse(called_arg.endswith("subdir/dirty_file.py"))
|
||||
self.assertFalse(called_arg.endswith(f"subdir{os.path.sep}dirty_file.py"))
|
||||
|
||||
def test_verbose_mode_lists_env_vars(self):
|
||||
self.create_env_file(".env", "AIDER_DARK_MODE=on")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue