mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Ignore errors (Windows)
This commit is contained in:
parent
0a5155e5bd
commit
699f1598fc
1 changed files with 4 additions and 5 deletions
|
@ -25,7 +25,10 @@ class TestCommands(TestCase):
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
os.chdir(self.original_cwd)
|
os.chdir(self.original_cwd)
|
||||||
shutil.rmtree(self.tempdir)
|
try:
|
||||||
|
shutil.rmtree(self.tempdir)
|
||||||
|
except OSError:
|
||||||
|
pass # Ignore errors (Windows)
|
||||||
|
|
||||||
def test_cmd_add(self):
|
def test_cmd_add(self):
|
||||||
# Initialize the Commands and InputOutput objects
|
# Initialize the Commands and InputOutput objects
|
||||||
|
@ -254,7 +257,3 @@ class TestCommands(TestCase):
|
||||||
self.assertIn(filenames[0], coder.abs_fnames)
|
self.assertIn(filenames[0], coder.abs_fnames)
|
||||||
self.assertNotIn(filenames[1], coder.abs_fnames)
|
self.assertNotIn(filenames[1], coder.abs_fnames)
|
||||||
self.assertIn(filenames[2], coder.abs_fnames)
|
self.assertIn(filenames[2], coder.abs_fnames)
|
||||||
|
|
||||||
del commands
|
|
||||||
del coder
|
|
||||||
del io
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue