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
270fe408
Commit
270fe408
authored
Jan 03, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_tkinter: use a context manager to close directly the pipe
Patch written by Nadeem Vawda
parent
5c85e3f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
Lib/tkinter/test/test_tkinter/test_loadtk.py
Lib/tkinter/test/test_tkinter/test_loadtk.py
+2
-1
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/tkinter/test/test_tkinter/test_loadtk.py
View file @
270fe408
...
@@ -31,7 +31,8 @@ class TkLoadTest(unittest.TestCase):
...
@@ -31,7 +31,8 @@ class TkLoadTest(unittest.TestCase):
# doesn't actually carry through to the process level
# doesn't actually carry through to the process level
# because they don't support unsetenv
# because they don't support unsetenv
# If that's the case, abort.
# If that's the case, abort.
display
=
os
.
popen
(
'echo $DISPLAY'
).
read
().
strip
()
with
os
.
popen
(
'echo $DISPLAY'
)
as
pipe
:
display
=
pipe
.
read
().
strip
()
if
display
:
if
display
:
return
return
...
...
Misc/ACKS
View file @
270fe408
...
@@ -866,6 +866,7 @@ Andrew Vant
...
@@ -866,6 +866,7 @@ Andrew Vant
Atul Varma
Atul Varma
Dmitry Vasiliev
Dmitry Vasiliev
Alexandre Vassalotti
Alexandre Vassalotti
Nadeem Vawda
Frank Vercruesse
Frank Vercruesse
Mike Verdone
Mike Verdone
Jaap Vermeulen
Jaap Vermeulen
...
...
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