Skip to content

Commit 5b63181

Browse files
committed
V5.0.1
1 parent cfe8dd3 commit 5b63181

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/core/test_log_utils_windows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ def test_windows_delete_file_scenarios(self):
564564
if os.path.exists(file_path):
565565
safe_close_and_delete_file(None, file_path)
566566

567-
# Test 2: Non-existent file (should not error)
567+
# Test 2: Non-existent file (should raise FileNotFoundError)
568568
non_existent = os.path.join(tempfile.gettempdir(), "non_existent_windows_test.log")
569-
result = log_utils.delete_file(non_existent)
570-
# Should not raise error and handle gracefully
569+
with pytest.raises(FileNotFoundError):
570+
log_utils.delete_file(non_existent)
571571

572572
@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific tests")
573573
def test_windows_logger_cleanup_integration(self):

0 commit comments

Comments
 (0)