module pycode.utils_tests_stringio
¶
Short summary¶
module pyquickhelper.pycode.utils_tests_stringio
A io.StringIO which also outputs its content for a file.
Classes¶
class |
truncated documentation |
---|---|
Overloads a StringIO to also writes in a file. |
Methods¶
method |
truncated documentation |
---|---|
constructor |
|
Redirects output to a io.StringIO. |
|
Calls two close. |
|
Ends the redirection. |
|
Calls two flush. |
|
Returns the content of the buffer. |
|
Appends a string. |
Documentation¶
A io.StringIO which also outputs its content for a file.
- class pyquickhelper.pycode.utils_tests_stringio.StringIOAndFile(filename)[source]¶
Bases:
StringIO
Overloads a StringIO to also writes in a file.
constructor
- Parameters:
filename – filename
- begin_test(name)[source]¶
Redirects output to a io.StringIO.
- Parameters:
name – name