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
794e5573
Commit
794e5573
authored
May 07, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17833: add debug output to investigate buildbot failure.
parent
a74e5c80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
Lib/test/test_tcl.py
Lib/test/test_tcl.py
+14
-4
No files found.
Lib/test/test_tcl.py
View file @
794e5573
...
...
@@ -4,6 +4,7 @@ import unittest
import
sys
import
os
from
test
import
test_support
from
subprocess
import
Popen
,
PIPE
# Skip this test if the _tkinter module wasn't built.
_tkinter
=
test_support
.
import_module
(
'_tkinter'
)
...
...
@@ -146,11 +147,20 @@ class TclTest(unittest.TestCase):
with
test_support
.
EnvironmentVarGuard
()
as
env
:
env
.
unset
(
"TCL_LIBRARY"
)
f
=
os
.
popen
(
'%s -c "import Tkinter; print Tkinter"'
%
(
unc_name
,))
cmd
=
'%s -c "import Tkinter; print Tkinter"'
%
(
unc_name
,)
p
=
Popen
(
cmd
,
stdout
=
PIPE
,
stderr
=
PIPE
)
out_data
,
err_data
=
p
.
communicate
()
msg
=
'
\
n
\
n
'
.
join
([
'"Tkinter.py" not in output'
,
'Command:'
,
cmd
,
'stdout:'
,
out_data
,
'stderr:'
,
err_data
])
self
.
assertIn
(
'Tkinter.py'
,
out_data
,
msg
)
self
.
assertEqual
(
p
.
wait
(),
0
,
'Non-zero exit code'
)
self
.
assertIn
(
'Tkinter.py'
,
f
.
read
())
# exit code must be zero
self
.
assertEqual
(
f
.
close
(),
None
)
def
test_passing_values
(
self
):
def
passValue
(
value
):
...
...
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