fix: Resolve symlinks in external file path for test

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 16:44:21 -04:00
parent 3549ed1205
commit 366da70907

View file

@ -425,6 +425,7 @@ class TestMain(TestCase):
return_coder=True,
)
self.assertIn(external_file_path, coder.abs_read_only_fnames)
real_external_file_path = os.path.realpath(external_file_path)
self.assertIn(real_external_file_path, coder.abs_read_only_fnames)
finally:
os.unlink(external_file_path)