test_ttk fails with Tk 9.1b1: empty -justify and -anchor are no longer rejected
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 77.2k
- Forks
- 35.9k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
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.
Evaluación
- Stack tecnológico
- python
- Área
- desktop, testing-qa
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 25/100