diff -r b888c9043566 Doc/library/test.rst --- a/Doc/library/test.rst Sun Feb 03 00:23:58 2013 +0100 +++ b/Doc/library/test.rst Sat Feb 09 16:01:17 2013 +0530 @@ -365,7 +365,7 @@ .. function:: captured_stdout() A context manager that runs the :keyword:`with` statement body using - a :class:`StringIO.StringIO` object as sys.stdout. That object can be + a :class:`io.StringIO` object as sys.stdout. That object can be retrieved using the ``as`` clause of the :keyword:`with` statement. Example use::