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
b5213f4d
Commit
b5213f4d
authored
Feb 24, 2019
by
Ned Deily
Committed by
GitHub
Feb 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.7] bpo-27313: Avoid test_ttk_guionly ComboboxTest fail with macOS Cocoa Tk (GH-12015)
parent
72ff2f75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/lib-tk/test/test_ttk/test_widgets.py
Lib/lib-tk/test/test_ttk/test_widgets.py
+6
-1
Misc/NEWS.d/next/Tests/2019-02-24-03-19-43.bpo-27313.Sj9veH.rst
...EWS.d/next/Tests/2019-02-24-03-19-43.bpo-27313.Sj9veH.rst
+1
-0
No files found.
Lib/lib-tk/test/test_ttk/test_widgets.py
View file @
b5213f4d
...
...
@@ -331,7 +331,12 @@ class EntryTest(AbstractWidgetTest, unittest.TestCase):
self
.
entry
.
wait_visibility
()
self
.
entry
.
update_idletasks
()
self
.
assertEqual
(
self
.
entry
.
identify
(
5
,
5
),
"textarea"
)
# bpo-27313: macOS Cocoa widget differs from X, allow either
if
sys
.
platform
==
'darwin'
:
self
.
assertIn
(
self
.
entry
.
identify
(
5
,
5
),
(
"textarea"
,
"Combobox.button"
)
)
else
:
self
.
assertEqual
(
self
.
entry
.
identify
(
5
,
5
),
"textarea"
)
self
.
assertEqual
(
self
.
entry
.
identify
(
-
1
,
-
1
),
""
)
self
.
assertRaises
(
tkinter
.
TclError
,
self
.
entry
.
identify
,
None
,
5
)
...
...
Misc/NEWS.d/next/Tests/2019-02-24-03-19-43.bpo-27313.Sj9veH.rst
0 → 100644
View file @
b5213f4d
Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa Tk.
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