Doctest capture only AssertionError but not printed text

Đang mở
#65,382 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.

Đánh giá

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

Hướng nghiên cứu

Start with the reproducing example in doctest_bug.py and run it to observe the difference between the AssertionError and printed text. Then trace the doctest library behavior responsible for capturing failures. Done means the reported output includes the relevant printed text as well as the assertion failure, with regression coverage for the example.

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

Mô tả

stdlib type-feature
BPO 21183
Nosy @tim-one, @stevendaprano, @osantana
Files
  • doctest_bug.py: Example that reproduces error
  • 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 2014-04-09.02:13:50.991>
    labels = ['type-feature', 'library']
    title = 'Doctest capture only AssertionError but not printed text'
    updated_at = <Date 2014-04-09.03:18:12.649>
    user = 'https://github.com/osantana'
    

    bugs.python.org fields:

    activity = <Date 2014-04-09.03:18:12.649>
    actor = 'steven.daprano'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2014-04-09.02:13:50.991>
    creator = 'osantana'
    dependencies = []
    files = ['34771']
    hgrepos = []
    issue_num = 21183
    keywords = []
    message_count = 5.0
    messages = ['215796', '215797', '215798', '215799', '215800']
    nosy_count = 3.0
    nosy_names = ['tim.peters', 'steven.daprano', 'osantana']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue21183'
    versions = ['Python 3.5']
    

    Ngôn ngữ chính
    Python
    Star
    77.2k
    Fork
    36k
    Merge trung bình
    1 ngày 9 giờ
    Pull request đã merge (30 ngày)
    558

    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.

    Issue khác của python/cpython

    Tất cả issue của python/cpython

    Issue tương tự

    Thêm issue về Python

    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.