From d5921f1a9a3447db3308e90f8128d661ddf2e317 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 7 Jul 2023 16:49:56 -0700 Subject: [PATCH] try resolve --- tests/test_commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index a574bf123..fcad63676 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -100,13 +100,12 @@ class TestCommands(TestCase): self.assertEqual(len(coder.abs_fnames), 2) - dump(coder.abs_fnames) # Call the cmd_drop method with a glob pattern commands.cmd_drop("*2.py") # Check if the Python files have been removed from the chat session - self.assertIn(os.path.abspath("test1.py"), coder.abs_fnames) - self.assertNotIn(os.path.abspath("test2.py"), coder.abs_fnames) + self.assertIn(str(Path("test1.py").resolve()), coder.abs_fnames) + self.assertNotIn(str(Path("test2.py").resolve()), coder.abs_fnames) def test_cmd_add_bad_encoding(self): # Initialize the Commands and InputOutput objects