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
c29863e3
Commit
c29863e3
authored
Jun 18, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6276: Remove usage of nested() in favor of new with statement with multiple managers.
parent
7c2bc830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_signal.py
Lib/test/test_signal.py
+3
-3
No files found.
Lib/test/test_signal.py
View file @
c29863e3
import
unittest
from
test
import
test_support
from
contextlib
import
closing
,
nested
from
contextlib
import
closing
import
gc
import
pickle
import
select
...
...
@@ -146,8 +146,8 @@ class InterProcessSignalTests(unittest.TestCase):
# re-raises information about any exceptions the child
# throws. The real work happens in self.run_test().
os_done_r
,
os_done_w
=
os
.
pipe
()
with
nested
(
closing
(
os
.
fdopen
(
os_done_r
)),
closing
(
os
.
fdopen
(
os_done_w
,
'w'
)))
as
(
done_r
,
done_w
)
:
with
closing
(
os
.
fdopen
(
os_done_r
))
as
done_r
,
\
closing
(
os
.
fdopen
(
os_done_w
,
'w'
))
as
done_w
:
child
=
os
.
fork
()
if
child
==
0
:
# In the child process; run the test and report results
...
...
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