[Python-checkins] cpython (merge 2.7 -> 2.7): merge heads

benjamin.peterson python-checkins at python.org
Wed Jun 1 02:08:32 CEST 2011


http://hg.python.org/cpython/rev/8919caab6995
changeset:   70565:8919caab6995
branch:      2.7
parent:      70561:fe99c5b9a58d
parent:      70558:07b43607a905
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue May 31 19:08:12 2011 -0500
summary:
  merge heads

files:
  Lib/test/test_subprocess.py |  2 +-
  Lib/test/test_support.py    |  3 +++
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -116,7 +116,7 @@
     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)
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -833,6 +833,9 @@
     """
     return captured_output("stdout")
 
+def captured_stderr():
+    return captured_output("stderr")
+
 def captured_stdin():
     return captured_output("stdin")
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list