From e17609cdee47bfbb333ec887c5b520297d7b40bd Mon Sep 17 00:00:00 2001 From: "HOME-2022\\User" Date: Thu, 30 May 2024 02:44:41 +0300 Subject: [PATCH] fix test to fail in linux too --- tests/test_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_functions.py b/tests/test_functions.py index 846260d..0f43475 100644 --- a/tests/test_functions.py +++ b/tests/test_functions.py @@ -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