summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:09:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:09:55 (GMT)
commite79be877df9a08d156f58050b303b5cab9142856 (patch)
tree2784e56d21c0b1aaa23220b87c96d644a4f10998 /Doc/library/unittest.mock.rst
parentec34ab501025f7fd677e0f6b8a8d0c9f960f069f (diff)
downloadcpython-e79be877df9a08d156f58050b303b5cab9142856.zip
cpython-e79be877df9a08d156f58050b303b5cab9142856.tar.gz
cpython-e79be877df9a08d156f58050b303b5cab9142856.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 0da6f49..6f3f693 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -1084,9 +1084,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'
...