We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe8dd3 commit 5b63181Copy full SHA for 5b63181
tests/core/test_log_utils_windows.py
@@ -564,10 +564,10 @@ def test_windows_delete_file_scenarios(self):
564
if os.path.exists(file_path):
565
safe_close_and_delete_file(None, file_path)
566
567
- # Test 2: Non-existent file (should not error)
+ # Test 2: Non-existent file (should raise FileNotFoundError)
568
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
+ with pytest.raises(FileNotFoundError):
+ log_utils.delete_file(non_existent)
571
572
@pytest.mark.skipif(sys.platform != "win32", reason="Windows-specific tests")
573
def test_windows_logger_cleanup_integration(self):
0 commit comments