summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:11:54 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:11:54 (GMT)
commitbbbf19170739f2f9c1505a03a1b4c43b5b2d484e (patch)
treeac205d0517aba8947cc24124dbd67e7bf5af09d6 /Doc/library/unittest.mock.rst
parentc593056744559102f79f82c8b87da05d9a0450ca (diff)
parente79be877df9a08d156f58050b303b5cab9142856 (diff)
downloadcpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.zip
cpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.tar.gz
cpython-bbbf19170739f2f9c1505a03a1b4c43b5b2d484e.tar.bz2
Issue #18743: Fix references to non-existant "StringIO" module.
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r--Doc/library/unittest.mock.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index be37868..4a7d647 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1104,9 +1104,9 @@ you wanted a :class:`NonCallableMock` to be used:
...
TypeError: 'NonCallableMock' object is not callable
-Another use case might be to replace an object with a `StringIO` instance:
+Another use case might be to replace an object with a `io.StringIO` instance:
- >>> from StringIO import StringIO
+ >>> from io import StringIO
>>> def foo():
... print 'Something'
...