test_ttk fails with Tk 9.1b1: empty -justify and -anchor are no longer rejected
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- PR 合并指标
- PR 指标待抓取
描述
Bug report
With Tk 9.1b1, four tests in test_ttk fail with AssertionError: TclError not raised: EntryTest, ComboboxTest and SpinboxTest.test_configure_justify, and LabelTest.test_configure_anchor.
They check that the empty string is rejected for these options. Since https://core.tcl-lang.org/tk/tktview/aba849a99b the empty string is the default of -justify of ttk::entry, ttk::combobox and ttk::spinbox, and of -anchor of ttk::label, and means the theme default. The change is in Tk 9.1b1 and will be in Tk 9.0.5.
Linked PRs
- gh-157783
- gh-157823
- gh-157824
- gh-157825
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从报告中列出的 test_ttk 用例开始:EntryTest、ComboboxTest、SpinboxTest.test_configure_justify 和 LabelTest.test_configure_anchor。检查它们如何针对空的 -justify 或 -anchor 值断言 TclError,然后使用 Tk 9.1b1 运行 ttk 测试;完成的标准是受影响的测试反映 Tk 的新默认行为,同时不掩盖其他失败。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- desktop, testing-qa
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100