RSH 6: Testing

Collaborative notes taken during the session

Testing

import io
import contextlib
my_io_buffer = io.StringIO()
with contextlib.redirect_stdout(my_io_buffer):
    import my_chatty_module # all output is now in the io buffer
    print('abcd') # abcd is now in the io buffer

History cleanup

Feedback