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
eee1048e
Commit
eee1048e
authored
Jul 03, 2011
by
Ned Deily
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8716: Fix errors in the non-OS X path of the 27 backport.
parent
46268c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/lib-tk/test/runtktests.py
Lib/lib-tk/test/runtktests.py
+2
-1
No files found.
Lib/lib-tk/test/runtktests.py
View file @
eee1048e
...
...
@@ -37,9 +37,10 @@ def check_tk_availability():
if
stderr
or
p
.
returncode
:
raise
unittest
.
SkipTest
(
"tk cannot be initialized: %s"
%
stderr
)
else
:
import
Tkinter
try
:
Tkinter
.
Button
()
except
t
kinter
.
TclError
as
msg
:
except
T
kinter
.
TclError
as
msg
:
# assuming tk is not available
raise
unittest
.
SkipTest
(
"tk not available: %s"
%
msg
)
...
...
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