merge heads

This commit is contained in:
Benjamin Peterson 2011-05-31 19:08:12 -05:00
commit bdc21fbaf9
2 changed files with 4 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class ProcessTestCase(BaseTestCase):
def test_invalid_args(self):
# Popen() called with invalid arguments should raise TypeError
# but Popen.__del__ should not complain (issue #12085)
with support.captured_stderr() as s:
with test_support.captured_stderr() as s:
self.assertRaises(TypeError, subprocess.Popen, invalid_arg_name=1)
argcount = subprocess.Popen.__init__.__code__.co_argcount
too_many_args = [0] * (argcount + 1)

View File

@ -833,6 +833,9 @@ def captured_stdout():
"""
return captured_output("stdout")
def captured_stderr():
return captured_output("stderr")
def captured_stdin():
return captured_output("stdin")