Repository navigation
Commit be37077
committed
test: adapt Tkinter tests for Tk 8.6.12
Backport the relevant behavior changes from bpo-45436 (4fe454c), bpo-41306 (aecf036), and the bpo-45979 correction (dbbe4d2).
Retain the older Tk expectations. On Tk 8.6.11+, explicitly test empty Menu.type and ttk compound values while still rejecting invalid enum values. On Tk 8.6.10+, expect Scale.from to retain its fractional value.
Validated test_tk and test_ttk_guionly with Python 3.6 and Tcl/Tk 8.6.12 on openSUSE Leap 15.6, including the affected widget classes with wantobjects disabled.1 parent 8d60b8b commit be37077
3 files changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
| |||
1165 | 1167 | | |
1166 | 1168 | | |
1167 | 1169 | | |
| 1170 | + | |
1168 | 1171 | | |
1169 | | - | |
| 1172 | + | |
| 1173 | + | |
1170 | 1174 | | |
1171 | 1175 | | |
1172 | 1176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | | - | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
156 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
| |||
0 commit comments