Skip to content

Commit

Permalink
fix test to fail in linux too
Browse files Browse the repository at this point in the history
  • Loading branch information
niradar committed May 29, 2024
1 parent 5058a62 commit e17609c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def test_validate_duplicate_files_destination(setup_teardown):
# test case 2: folder doesn't exist and cannot be created
with pytest.raises(SystemExit) as excinfo:
file_manager.FileManager.reset_file_manager([target_dir], [source_dir, move_to_dir], True)
validate_duplicate_files_destination(os.path.join(source_dir, "\"^&%/#$^%&!@"), run_mode=True)
validate_duplicate_files_destination(os.path.join(source_dir, "\"^&%/#$^\0%&!@"), run_mode=True)
assert excinfo.type == SystemExit
assert excinfo.value.code == 1

Expand Down

0 comments on commit e17609c

Please sign in to comment.