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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python

調査の方向性

レポートで挙げられている test_ttk のケース、EntryTest、ComboboxTest、SpinboxTest.test_configure_justify、LabelTest.test_configure_anchor から始めます。空の -justify または -anchor の値に対して TclError をどのようにアサートしているかを確認し、その後 Tk 9.1b1 で ttk テストを実行します。影響を受けるテストが Tk の新しいデフォルト動作を反映し、他の失敗を隠していなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

tests topic-tkinter type-bug

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
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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