test_ttk fails with Tk 9.1b1: empty -justify and -anchor are no longer rejected
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- 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