cpython: d0f7f1996001 (original) (raw)

Mercurial > cpython

changeset 84549:d0f7f1996001

Merge #17987: properly document support.captured_xxx. [#17987]

R David Murray rdmurray@bitdance.com
date Thu, 11 Jul 2013 12:29:31 -0400
parents 19ed630d8d75(current diff)af2416c2e27c(diff)
children e6384b8b2325
files Lib/test/support.py Misc/ACKS
diffstat 4 files changed, 48 insertions(+), 17 deletions(-)[+] [-] Doc/library/test.rst 28 Lib/test/support.py 19 Lib/test/test_support.py 17 Misc/ACKS 1

line wrap: on

line diff

--- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -362,17 +362,29 @@ The :mod:test.support module defines t New optional arguments filters and quiet. -.. function:: captured_stdout() +.. function:: captured_stdin()

.. function:: temp_cwd(name='tempcwd', quiet=False, path=None)

--- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -1186,16 +1186,31 @@ def captured_output(stream_name): def captured_stdout(): """Capture the output of sys.stdout:

+

+

--- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -130,19 +130,22 @@ class TestSupport(unittest.TestCase): self.assertNotIn("bar", sys.path) def test_captured_stdout(self):

def test_captured_stderr(self):

def test_captured_stdin(self):

def test_gc_collect(self): support.gc_collect()

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -66,6 +66,7 @@ Luigi Ballabio Jeff Balogh Manuel Balsera Matt Bandy +Dmi Baranov Michael J. Barber Daniel Barclay Nicolas Bareil