fix: 编号进度被拒绝访问时继续下载

This commit is contained in:
2026-10-25 08:53:15 +08:00
parent 69c7df85d3
commit e99a112965
4 changed files with 68 additions and 7 deletions
+3
View File
@@ -121,7 +121,10 @@ def test_file_errors_use_chinese(tmp_path: Path, monkeypatch):
full.winerror = 112
full_errno = OSError("full")
full_errno.errno = 28
denied = OSError("denied")
denied.winerror = 5
assert explain_os_error(busy) == "文件被占用,请先关闭 Excel 等程序"
assert explain_os_error(denied) == "文件被拒绝访问"
assert explain_os_error(locked) == "文件被占用,请先关闭 Excel 等程序"
assert explain_os_error(full) == "磁盘空间不足"
assert explain_os_error(full_errno) == "磁盘空间不足"