unittest fails with "Start directory is not importable" when trying to run sourceless tests
Đang mở
Chưa có ai nhận issue này.
stdlib
tests
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 | 26859 |
|---|---|
| Nosy | @rbtcollins, @Fak3, @vadmium |
| Files |
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 2016-04-26.13:42:17.449>
labels = ['tests', 'type-bug', 'library']
title = 'unittest fails with "Start directory is not importable" when trying to run sourceless tests'
updated_at = <Date 2019-12-10.08:16:01.494>
user = 'https://github.com/xdegaye'
bugs.python.org fields:
activity = <Date 2019-12-10.08:16:01.494>
actor = 'xdegaye'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'Tests']
creation = <Date 2016-04-26.13:42:17.449>
creator = 'xdegaye'
dependencies = []
files = ['42611', '42646', '43507']
hgrepos = []
issue_num = 26859
keywords = ['patch']
message_count = 7.0
messages = ['264283', '264338', '264361', '264431', '264472', '268918', '269055']
nosy_count = 4.0
nosy_names = ['rbcollins', 'Roman.Evstifeev', 'martin.panter', 'Pam.McANulty']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'patch review'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue26859'
versions = ['Python 3.6']
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách xem xét unittest.patch và unittest_2.patch, đặc biệt là test case đi kèm, sau đó kiểm tra hành vi discovery test của unittest đối với các test không có tệp mã nguồn. Tiếp theo, so sánh unittest_3.patch với lỗi đã được báo cáo. Hoàn tất khi kịch bản test không có tệp mã nguồn không còn phát sinh "Start directory is not importable" và regression test pass.
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
- testing-qa
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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
- 30/100