python / python/cpython

test_ttk fails with Tk 9.1b1: empty -justify and -anchor are no longer rejected

オープン
#157,782 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

tests topic-tkinter type-bug
主要言語
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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。