Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
20acaa7a
Commit
20acaa7a
authored
Nov 04, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Issue #19085: Fix Tkinter tests on Tk 8.5 with patchlevel < 8.5.12.
parents
3daaf5f8
8d8599ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
Lib/tkinter/test/widget_tests.py
Lib/tkinter/test/widget_tests.py
+13
-1
No files found.
Lib/tkinter/test/widget_tests.py
View file @
20acaa7a
...
...
@@ -8,10 +8,22 @@ from tkinter.test.support import (tcl_version, requires_tcl, pixels_conv,
noconv
=
str
if
tcl_version
<
(
8
,
5
)
else
False
pixels_round
=
round
if
tcl_version
[:
2
]
==
(
8
,
5
):
# Issue #19085: Workaround a bug in Tk
# http://core.tcl.tk/tk/info/3497848
root
=
setup_master
()
patchlevel
=
root
.
call
(
'info'
,
'patchlevel'
)
patchlevel
=
tuple
(
map
(
int
,
patchlevel
.
split
(
'.'
)))
if
patchlevel
<
(
8
,
5
,
12
):
pixels_round
=
int
del
root
_sentinel
=
object
()
class
AbstractWidgetTest
:
_conv_pixels
=
round
_conv_pixels
=
pixels_
round
_conv_pad_pixels
=
None
wantobjects
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment