Stop test_ssl from changing environment
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
On my Win10, buildt yesterday and today, py -m test and py -m test test_ssl sometimes (>50%) changes the environment, which is a failure for the whole suite (test alone).
0:01:43 load avg: 2.28 [466/485/1] test_ssl failed (env changed) (31.1 sec) -
Warning -- warnings.filters was modified by test_ssl
Warning -- Before: (2199023321584, [], [])
Warning -- After: (2199661512208, [('always', None, <class 'ResourceWarning'>, None, 0)], [('always', None, <class 'ResourceWarning'>, None, 0)])
About 5 runs with -v added don't show this, though there are a few hundred lines of output with several ssl error tracebacks that do not cause a test failure.
Might just be my machine if no CI errors.
EDIT: py ran installed 3.14.0a5. Just reran twice with today's buld with python ... to run the build and got the same. Install is norma + gil. Build is debug no-gil.
Installed new 3.14.0a6 and ran 5 times without failure. I rechecked and my python build with the problem is post-release 3.14.0a6+.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在报告的 Windows debug no-GIL build 上运行 py -m test test_ssl 和完整的 py -m test 测试套件,并比较带有和不带有 -v 的运行结果。调查报告的 warnings.filters 环境变化和 ssl 错误 traceback;当重复运行不再报告 test_ssl failed (env changed) 时即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100