diff --git a/tests/basic/test_commands.py b/tests/basic/test_commands.py index ec1dcbefb..df8011094 100644 --- a/tests/basic/test_commands.py +++ b/tests/basic/test_commands.py @@ -683,7 +683,7 @@ class TestCommands(TestCase): found_file1 = found_file2 = found_file3 = False for line in commands_text: if line.startswith("/add "): - path = Path(line[5:]).resolve() + path = Path(line[5:].strip()).resolve() if os.path.samefile(str(path), abs_file1): found_file1 = True elif os.path.samefile(str(path), abs_file2):