python / python/cpython

On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename

Đang mở
#87,095 6 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

3.10 3.9 (EOL) OS-windows stdlib type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

BPO 42929
Nosy @pfmoore, @tjguk, @zware, @serhiy-storchaka, @eryksun, @zooba, @fireattack

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2021-01-14.21:29:10.072>
labels = ['3.10', 'type-bug', 'library', '3.9', 'OS-windows']
title = "On Windows, shutil.move doesn't raise FileExistsError if dst exists like os.rename"
updated_at = <Date 2021-01-15.16:18:14.404>
user = 'https://github.com/fireattack'

bugs.python.org fields:

activity = <Date 2021-01-15.16:18:14.404>
actor = 'eryksun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Windows']
creation = <Date 2021-01-14.21:29:10.072>
creator = 'fireattack'
dependencies = []
files = []
hgrepos = []
issue_num = 42929
keywords = []
message_count = 5.0
messages = ['385083', '385084', '385090', '385107', '385116']
nosy_count = 7.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'serhiy.storchaka', 'eryksun', 'steve.dower', 'fireattack']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue42929'
versions = ['Python 3.9', 'Python 3.10']

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Issue nêu shutil.move và os.rename là các điểm vào; trước tiên hãy so sánh hành vi của chúng trên Windows khi dst đã tồn tại. Tái hiện trường hợp này trên Windows và xác định các bài kiểm thử thư viện liên quan. Công việc hoàn tất khi hành vi FileExistsError được yêu cầu được bao phủ bởi một bài kiểm thử hồi quy.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
operating-systems
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.