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

Cerrado
#157,782 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Comienza con los casos de test_ttk mencionados en el informe: EntryTest, ComboboxTest, SpinboxTest.test_configure_justify y LabelTest.test_configure_anchor. Revisa cómo comprueban que se produce TclError para valores vacíos de -justify o -anchor y, después, ejecuta las pruebas de ttk con Tk 9.1b1; se considera terminado cuando las pruebas afectadas reflejan el nuevo comportamiento predeterminado de Tk sin ocultar otros fallos.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
77.2k
Forks
36k
Merge medio
1 d 9 h
PR fusionados (30 d)
558

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python/cpython

Todos los issues de python/cpython

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.