summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-18 22:24:26 (GMT)
committerGeorg Brandl <georg@python.org>2009-06-18 22:24:26 (GMT)
commitc29863e3a6d3fe076eac4ef42c827ecc38ccc4b1 (patch)
tree330bdc5b1b7e2ce0c55ef9bb5f3316f7ac847125
parent7c2bc8308c2bedc263072e79ecf5b3ff1f00571f (diff)
downloadcpython-c29863e3a6d3fe076eac4ef42c827ecc38ccc4b1.zip
cpython-c29863e3a6d3fe076eac4ef42c827ecc38ccc4b1.tar.gz
cpython-c29863e3a6d3fe076eac4ef42c827ecc38ccc4b1.tar.bz2
#6276: Remove usage of nested() in favor of new with statement with multiple managers.
-rw-r--r--Lib/test/test_signal.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_signal.py b/Lib/test/test_signal.py
index ff5c173..21577db 100644
--- a/Lib/test/test_signal.py
+++ b/Lib/test/test_signal.py
@@ -1,6 +1,6 @@
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