python / python/cpython

Adding an assertClose() method to unittest.TestCase

未关闭
#71,385 26 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

stdlib type-feature
主要语言
Python
星标
77.2k
派生
36k
PR 合并指标
PR 指标待抓取

描述

BPO 27198
Nosy @rhettinger, @gpshead, @mdickinson, @rbtcollins, @ezio-melotti, @bitdancer, @voidspace, @berkerpeksag, @vedgar, @PythonCHB, @iritkatriel
Files
  • assertClose.patch: patch against recent default branch
  • assertClose.patch: updated with equation in the docs
  • 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-06-03.18:48:32.670>
    labels = ['type-feature', 'library', '3.11']
    title = 'Adding an assertClose() method to unittest.TestCase'
    updated_at = <Date 2022-03-21.22:57:05.453>
    user = 'https://github.com/PythonCHB'
    

    bugs.python.org fields:

    activity = <Date 2022-03-21.22:57:05.453>
    actor = 'ChrisBarker'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-06-03.18:48:32.670>
    creator = 'ChrisBarker'
    dependencies = []
    files = ['43157', '43165']
    hgrepos = []
    issue_num = 27198
    keywords = ['patch']
    message_count = 23.0
    messages = ['267133', '267139', '267150', '267153', '267160', '267168', '267169', '267172', '267176', '267178', '267187', '267215', '267224', '267445', '268878', '268881', '269034', '269036', '269192', '415576', '415586', '415593', '415720']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'gregory.p.smith', 'mark.dickinson', 'rbcollins', 'ezio.melotti', 'r.david.murray', 'michael.foord', 'berker.peksag', 'Pam.McANulty', 'veky', 'ChrisBarker', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue27198'
    versions = ['Python 3.11']
    

    Linked PRs
    • gh-96881

    贡献指南

    打开贡献指南

    从这里开始

    1. 先读完整个 Issue,再读项目的贡献指南。
    2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
    3. Fork 仓库,在一个分支上完成修改。
    4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

    调研方向

    首先查看附加的两个 assertClose.patch 文件,以及它们针对的现有 unittest.TestCase 断言。在决定是否仍有工作需要完成之前,请阅读讨论内容和链接的 PR gh-96881;只有就 assertClose() API、实现、文档和测试达成一致后,才算完成。

    由索引模型根据 Issue 内容生成。

    评估

    技术栈
    python
    领域
    testing
    Issue 类型
    功能
    难度
    4/5
    预计耗时
    3-5 天
    活跃度
    停滞
    描述清晰度
    需要澄清
    新手友好度
    25/100

    把新 issue 发到你的邮箱

    精选适合新手参与的 GitHub issue 摘要。