Skip to content

Commit

Permalink
fix: normalize path in cmd_drop test for cross-platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Nov 30, 2024
1 parent 0ee9b74 commit 871030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/basic/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_cmd_add_drop_directory(self):
self.assertIn(str(Path("test_dir/test_file2.txt").resolve()), coder.abs_fnames)
self.assertIn(str(Path("test_dir/another_dir/test_file.txt").resolve()), coder.abs_fnames)

commands.cmd_drop("test_dir/another_dir")
commands.cmd_drop(str(Path("test_dir/another_dir")))
self.assertIn(str(Path("test_dir/test_file1.txt").resolve()), coder.abs_fnames)
self.assertIn(str(Path("test_dir/test_file2.txt").resolve()), coder.abs_fnames)
self.assertNotIn(
Expand Down

0 comments on commit 871030d

Please sign in to comment.