ef55182623cf9492d208ad656d84a50c51c862cf,tests/test_stdout_capturing.py,,test_python_tee_output,#,11

Before Change


        with capture_stdout() as (f, final_out):
            print("captured stdout")
            print("captured stderr")
            f.seek(0)
            output = f.read()

        print("after (stdout)")
        print("after (stderr)")

After Change


        with capture_stdout() as out:
            print("captured stdout")
            print("captured stderr")
        output = out.get()

        print("after (stdout)")
        print("after (stderr)")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_python_tee_output


Project Name: IDSIA/sacred
Commit Name: ef55182623cf9492d208ad656d84a50c51c862cf
Time: 2017-11-04
Author: qwlouse@gmail.com
File Name: tests/test_stdout_capturing.py
Class Name:
Method Name: test_fd_tee_output


Project Name: matthewwithanm/django-imagekit
Commit Name: 6412e40c695c4239c0f77fee45e97434330d9b56
Time: 2011-09-26
Author: Chrismc@hzdg.com
File Name: imagekit/tests.py
Class Name: IKTest
Method Name: test_save_image