mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18743: Fix references to non-existant "StringIO" module.
This commit is contained in:
commit
bbbf191707
6 changed files with 8 additions and 8 deletions
|
@ -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'
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue