Skip to content

Commit 48e68c8

Browse files
authored
Fix tests. (#702)
1 parent 5a389bf commit 48e68c8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/tests_integration/test_logging.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,13 @@ def test_errors_are_caught_and_logged(self, project):
586586

587587
# Check that errors and logs flag the transfer errors
588588
errors = transfer_output["errors"]
589+
# in Linux, macOS backup files are written during logging ,we want to ignore these
590+
errors["file_names"] = [
591+
filepath
592+
for filepath in errors["file_names"]
593+
if "partial" not in filepath
594+
]
595+
589596
assert errors["file_names"] == [relative_path.as_posix()]
590597
assert error_message in errors["messages"][0]
591598

0 commit comments

Comments
 (0)